From 4a305861d99d7e2d76615c06ef49dda5d849bf40 Mon Sep 17 00:00:00 2001 From: Nikolay Oskin Date: Sat, 6 Aug 2022 13:30:40 +0300 Subject: return ErrRunLimit when restartLimit exceeded --- rutina.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rutina.go') diff --git a/rutina.go b/rutina.go index 3cf140c..4206f54 100755 --- a/rutina.go +++ b/rutina.go @@ -219,7 +219,7 @@ func (p *process) run(pctx context.Context, errCh chan error, logger logger) err if errCh != nil { errCh <- ErrRunLimit } - return nil + return ErrRunLimit } } logger("restarting process #%d", p.id) -- cgit v1.2.3