diff --git a/routines/routines.go b/routines/routines.go index dd48101..c3a9668 100644 --- a/routines/routines.go +++ b/routines/routines.go @@ -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 {