routines: Fix routines never restarting

This commit is contained in:
Sasha Koshka 2024-11-05 16:20:38 -05:00
parent 9425f1b3a9
commit 55904642d0

View File

@ -149,7 +149,7 @@ func (this *Manager) runRoutine (routine Routine, group *sync.WaitGroup) {
this.log("XXX routine failed:", err) this.log("XXX routine failed:", err)
} }
if time.Since(lastStart) < this.RestartDeadline { if time.Since(lastStart) < restartDeadline {
this.log("!!! not restarting routine, failed too soon") this.log("!!! not restarting routine, failed too soon")
break break
} else { } else {