Merge pull request #132 from JunyiHe/fix_retry

fix incorrect retry times
pull/140/head
QLeelulu 2019-01-23 13:01:59 +08:00 committed by GitHub
commit a282c6de9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
job.go
View File

@ -155,7 +155,7 @@ func (c *Cmd) Run() {
return
}
for i := 0; i < c.Job.Retry; i++ {
for i := 0; i <= c.Job.Retry; i++ {
if c.Job.Run() {
return
}