doesn't sleep after last try

This commit is contained in:
Rekby 2016-04-11 07:26:45 +03:00
parent 3a426a1382
commit 7557681b06

View file

@ -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")
}