timer: fix unexpected triggering of service immediately after restart of a timer (#38868)

Fixes: #31231
Fixes: #35805
This commit is contained in:
Yu Watanabe
2025-09-26 09:51:36 +09:00
committed by GitHub
8 changed files with 199 additions and 11 deletions
-2
View File
@@ -664,8 +664,6 @@ static int timer_start(Unit *u) {
if (r < 0)
return r;
t->last_trigger = DUAL_TIMESTAMP_NULL;
/* Reenable all timers that depend on unit activation time */
LIST_FOREACH(value, v, t->values)
if (v->base == TIMER_ACTIVE)