summaryrefslogtreecommitdiff
path: root/src/login/logind-dbus.c
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2017-04-04 08:51:33 +0200
committerSven Eden <yamakuzure@gmx.net>2017-04-04 08:51:33 +0200
commit39d8e47296d2465666c42bd163155881128a8fa8 (patch)
tree972fe6edb93e54c9924af3fa8ef60176c4f35a3d /src/login/logind-dbus.c
parentcb29c0b51b66f934374908cd6a271786c69ca751 (diff)
Fix assertion failure when resuming from sleep/suspend
Diffstat (limited to 'src/login/logind-dbus.c')
-rw-r--r--src/login/logind-dbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c
index d238d6c6f..0c1f90dea 100644
--- a/src/login/logind-dbus.c
+++ b/src/login/logind-dbus.c
@@ -1528,7 +1528,7 @@ int manager_dispatch_delayed(Manager *manager, bool timeout) {
assert(manager);
- if (manager->action_what == 0 && manager->pending_action == 0)
+ if ( (0 == manager->action_what) || (HANDLE_IGNORE == manager->pending_action) )
return 0;
if (manager_is_inhibited(manager, manager->action_what, INHIBIT_DELAY, NULL, false, false, 0, &offending)) {