From 7557681b06effe07acfd77eabc4da26d06467970 Mon Sep 17 00:00:00 2001 From: Rekby Date: Mon, 11 Apr 2016 07:26:45 +0300 Subject: [PATCH] doesn't sleep after last try --- acme/jws.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/acme/jws.go b/acme/jws.go index 453b791c..928e277c 100644 --- a/acme/jws.go +++ b/acme/jws.go @@ -110,7 +110,9 @@ func (j *jws) Nonce() (string, error) { // get nonce ok and can continue break } - time.Sleep(RETRY_PAUSE); + if(i < TRY_COUNT -1) { + time.Sleep(RETRY_PAUSE); + } } } if len(j.nonces) == 0 {