aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/backend-dbus/actions.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend-dbus/actions.c b/src/backend-dbus/actions.c
index 3d4b6f0..cac7c40 100644
--- a/src/backend-dbus/actions.c
+++ b/src/backend-dbus/actions.c
@@ -811,13 +811,13 @@ lock_current_session (IndicatorSessionActions * self, gboolean immediate)
{
unity_session_call_lock (p->unity_session, p->cancellable, NULL, NULL);
}
-
- return;
}
+ else
+ {
+ g_return_if_fail (p->screen_saver != NULL);
- g_return_if_fail (p->screen_saver != NULL);
-
- gnome_screen_saver_call_lock (p->screen_saver, p->cancellable, NULL, NULL);
+ gnome_screen_saver_call_lock (p->screen_saver, p->cancellable, NULL, NULL);
+ }
}
static void