Skip to content

Commit

Permalink
Merge pull request #4147 from /issues/7222-1.3.x
Browse files Browse the repository at this point in the history
Tokens fail to retry due to empty nonce
  • Loading branch information
kjozwiak authored Dec 6, 2019
2 parents acd828d + 914d21a commit 497230a
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,19 @@ void RefillTokens::Refill(

public_key_ = public_key;

nonce_ = "";

RequestSignedTokens();
}

void RefillTokens::RetryGettingSignedTokens() {
BLOG(INFO) << "Retry getting signed tokens";

if (nonce_.empty()) {
RequestSignedTokens();
return;
}

GetSignedTokens();
}

Expand Down Expand Up @@ -309,8 +316,8 @@ void RefillTokens::OnRefill(
BLOG(ERROR) << "Failed to refill tokens";

if (should_retry) {
confirmations_->StartRetryingToGetRefillSignedTokens(
kRetryGettingRefillSignedTokensAfterSeconds);
confirmations_->StartRetryingToGetRefillSignedTokens(
kRetryGettingRefillSignedTokensAfterSeconds);
}

return;
Expand Down

0 comments on commit 497230a

Please sign in to comment.