From b363ca6f206258acff8bc0a27dc72a99210011a8 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 28 Oct 2010 04:04:50 +0200 Subject: [PATCH] timer: when deserializing timer state stay elapsed when we are elapsed --- TODO | 2 -- src/timer.c | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/TODO b/TODO index 67d397e3..a01f2a99 100644 --- 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 diff --git a/src/timer.c b/src/timer.c index b01944cc..627a360f 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); -- 2.39.5