summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton V. Boyarshinov <[email protected]>2013-04-09 17:18:12 +0400
committerAnton V. Boyarshinov <[email protected]>2013-04-09 17:18:12 +0400
commit4963dd54412f8bdab61fd4537c753c064c2d3712 (patch)
treef4908cc6e41a68007f2067154fefa5ad68254ef4 /src
parentb19ce03f92d310d8fef5781ee3384572e6ae10f8 (diff)
downloadmate-power-manager-4963dd54412f8bdab61fd4537c753c064c2d3712.tar.bz2
mate-power-manager-4963dd54412f8bdab61fd4537c753c064c2d3712.tar.xz
crash when suspending via logind fixed
On some machins it seems to be a race condition in dbus when suspend via systemd. Here is a workaround.
Diffstat (limited to 'src')
-rw-r--r--src/gpm-control.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpm-control.c b/src/gpm-control.c
index b118af1..9f70f7f 100644
--- a/src/gpm-control.c
+++ b/src/gpm-control.c
@@ -232,9 +232,9 @@ gpm_control_suspend (GpmControl *control, GError **error)
&dbus_error
);
if (dbus_error != NULL ) {
- egg_error ("Error in dbus - %s", dbus_error->message);
- fprintf(stderr,"Error connecting to dbus - %s", dbus_error->message);
+ egg_debug ("Error in dbus - %s", dbus_error->message);
g_error_free (dbus_error);
+ ret = TRUE;
}
else {
ret = TRUE;
@@ -346,9 +346,9 @@ gpm_control_hibernate (GpmControl *control, GError **error)
&dbus_error
);
if (dbus_error != NULL ) {
- egg_error ("Error in dbus - %s", dbus_error->message);
- fprintf(stderr,"Error connecting to dbus - %s", dbus_error->message);
+ egg_debug ("Error in dbus - %s", dbus_error->message);
g_error_free (dbus_error);
+ ret = TRUE;
}
else {
ret = TRUE;