/* no more pending actions, whether this failed or not */
m->pending_action = HANDLE_IGNORE;
- if (r < 0)
- return r;
/* As elogind can not rely on a systemd manager to call all
* sleeping processes to wake up, we have to tell them all
m->action_what = 0;
} else
m->action_what = w;
+
+ if (r < 0)
+ return r;
#endif // 0
/* Make sure the lid switch is ignored for a while */