chiark / gitweb /
unit: rework stop pending logic
[elogind.git] / src / core / timer.c
index b8039d82ec3549bf98ff11a96f5f3daa752e4c5b..ff8c30583cb4cf4c594ab0e86c8459938dd67b5d 100644 (file)
@@ -374,7 +374,7 @@ static void timer_enter_running(Timer *t) {
         dbus_error_init(&error);
 
         /* Don't start job if we are supposed to go down */
-        if (unit_pending_inactive(UNIT(t)))
+        if (unit_stop_pending(UNIT(t)))
                 return;
 
         r = manager_add_job(UNIT(t)->manager, JOB_START, UNIT_TRIGGER(UNIT(t)),