diff options
author | Ted Gould <ted@gould.cx> | 2010-03-15 17:17:39 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-03-15 17:17:39 -0500 |
commit | 2d17c4577bdf36b417ede0eb12c771f89be74a99 (patch) | |
tree | 145daf6e7b140029860d6e65b4054df0393adbeb | |
parent | 28ef20a9ad4b4b5e931b6eb4833accf44c65951f (diff) | |
download | ayatana-indicator-session-2d17c4577bdf36b417ede0eb12c771f89be74a99.tar.gz ayatana-indicator-session-2d17c4577bdf36b417ede0eb12c771f89be74a99.tar.bz2 ayatana-indicator-session-2d17c4577bdf36b417ede0eb12c771f89be74a99.zip |
Checking the error to make sure we're getting back reasonable data or reporting the error.
-rw-r--r-- | src/session-service.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/session-service.c b/src/session-service.c index 9dd50bf..7c7e513 100644 --- a/src/session-service.c +++ b/src/session-service.c @@ -261,6 +261,11 @@ up_changed_cb (DBusGProxy * proxy, gpointer user_data) static void allowed_cb (DBusGProxy *proxy, gboolean OUT_allowed, GError *error, gpointer userdata) { + if (error != NULL) { + g_warning("Unable to get information on what is allowed from UPower: %s", error->message); + return; + } + gboolean * can_do = (gboolean *)userdata; if (OUT_allowed != *can_do) { |