forked from TrueCloudLab/lego
doesn't sleep after last try
This commit is contained in:
parent
3a426a1382
commit
7557681b06
1 changed files with 3 additions and 1 deletions
|
@ -110,9 +110,11 @@ func (j *jws) Nonce() (string, error) {
|
|||
// get nonce ok and can continue
|
||||
break
|
||||
}
|
||||
if(i < TRY_COUNT -1) {
|
||||
time.Sleep(RETRY_PAUSE);
|
||||
}
|
||||
}
|
||||
}
|
||||
if len(j.nonces) == 0 {
|
||||
return "", errors.New("Can't get nonce")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue