chiark / gitweb /
timer: when deserializing timer state stay elapsed when we are elapsed
authorLennart Poettering <lennart@poettering.net>
Thu, 28 Oct 2010 02:04:50 +0000 (04:04 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 28 Oct 2010 02:04:50 +0000 (04:04 +0200)
TODO
src/timer.c

diff --git a/TODO b/TODO
index 67d397e..a01f2a9 100644 (file)
--- a/TODO
+++ b/TODO
@@ -64,8 +64,6 @@
 
 * parse early boot time env var from dracut
 
-* add switch to disable pull in retroactively
-
 * cryptsetup
 
 * add seperate man page for [Install] settings
index b01944c..627a360 100644 (file)
@@ -161,9 +161,7 @@ static int timer_coldplug(Unit *u) {
 
         if (t->deserialized_state != t->state) {
 
-                if (t->deserialized_state == TIMER_WAITING ||
-                    t->deserialized_state == TIMER_RUNNING ||
-                    t->deserialized_state == TIMER_ELAPSED)
+                if (t->deserialized_state == TIMER_WAITING)
                         timer_enter_waiting(t, false);
                 else
                         timer_set_state(t, t->deserialized_state);