aboutsummaryrefslogtreecommitdiff
path: root/src/session-service.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/session-service.c')
-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) {