mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-01-27 01:20:00 +07:00
timer: when deserializing timer state stay elapsed when we are elapsed
This commit is contained in:
parent
f14e15f8af
commit
b363ca6f20
2
TODO
2
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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user