diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-10-28 04:04:50 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-10-28 04:04:50 +0200 |
commit | b363ca6f206258acff8bc0a27dc72a99210011a8 (patch) | |
tree | 8ea1fd1e936291361f7e2e6c1b504f208ad4104e /src/timer.c | |
parent | unit: replace recursive_stop by stop_retroactively to simplify things a little (diff) | |
download | systemd-b363ca6f206258acff8bc0a27dc72a99210011a8.tar.xz systemd-b363ca6f206258acff8bc0a27dc72a99210011a8.zip |
timer: when deserializing timer state stay elapsed when we are elapsed
Diffstat (limited to 'src/timer.c')
-rw-r--r-- | src/timer.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/timer.c b/src/timer.c index b01944ccdb..627a360fe6 100644 --- a/src/timer.c +++ b/src/timer.c @@ -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); |