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

@ -148,8 +148,8 @@ func (this *Manager) runRoutine (routine Routine, group *sync.WaitGroup) {
} else {
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")
break
} else {