routines: Fix routines never restarting
This commit is contained in:
parent
9425f1b3a9
commit
55904642d0
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user