aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-15 17:17:39 -0500
committerTed Gould <ted@gould.cx>2010-03-15 17:17:39 -0500
commit2d17c4577bdf36b417ede0eb12c771f89be74a99 (patch)
tree145daf6e7b140029860d6e65b4054df0393adbeb /src
parent28ef20a9ad4b4b5e931b6eb4833accf44c65951f (diff)
downloadayatana-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.
Diffstat (limited to 'src')
-rw-r--r--src/session-service.c5
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) {