logind: tighten assertion in execute_shutdown_or_sleep()
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Thu, 24 Aug 2017 14:21:21 +0000 (15:21 +0100)
committerAlan Jenkins <alan.christopher.jenkins@gmail.com>
Thu, 24 Aug 2017 14:21:21 +0000 (15:21 +0100)
commitb61fa4e00166b2bf593e0f6edbb277543f03915f
tree581c8d1ec6e847a333879a1facbfd0cbd7295182
parent6d7f7fd49f8a094fc36e750de1e80afea80c8228
logind: tighten assertion in execute_shutdown_or_sleep()

Following commit b498d6ea, I belated realized we should tighten the
assertions as well, to make sure that we're setting `m->action_what` to
represent an action in progress.  (The check for an action in progress is
to compare `m->action_what` to zero)
src/login/logind-dbus.c