aboutsummaryrefslogtreecommitdiff
path: root/rutina.go
diff options
context:
space:
mode:
authorAlex <i@neonxp.dev>2022-08-06 13:39:10 +0300
committerGitHub <noreply@github.com>2022-08-06 13:39:10 +0300
commit01f2df0f273ba3b488d1d3ce85c059db6e46d016 (patch)
tree63cfe20440f7d7c3aa3cf6ee5367c4e2c756af56 /rutina.go
parent14fcf184ae40729e270821115e2ba39c475badb9 (diff)
parent4a305861d99d7e2d76615c06ef49dda5d849bf40 (diff)
Merge pull request #6 from NikolayOskin/master
return error from Wait when restart exceeded
Diffstat (limited to 'rutina.go')
-rwxr-xr-xrutina.go2
1 files changed, 1 insertions, 1 deletions
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)