From 55904642d0db7c824beefce5493b42d2426932d1 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Tue, 5 Nov 2024 16:20:38 -0500 Subject: [PATCH] routines: Fix routines never restarting --- routines/routines.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {