Skip to content

Commit

Permalink
Merge pull request #4334 from /issues/7666
Browse files Browse the repository at this point in the history
Fixes unable to get ad tokens if tokens are not ready
  • Loading branch information
tmancey committed Jan 9, 2020
2 parents 86b9ea1 + af6ca70 commit 4f181d7
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,11 +307,6 @@ void RefillTokens::OnGetSignedTokens(
void RefillTokens::OnRefill(
const Result result,
const bool should_retry) {
blinded_tokens_.clear();
tokens_.clear();

confirmations_->SaveState();

if (result != SUCCESS) {
BLOG(ERROR) << "Failed to refill tokens";

Expand All @@ -323,6 +318,10 @@ void RefillTokens::OnRefill(
return;
}

blinded_tokens_.clear();
tokens_.clear();
confirmations_->SaveState();

BLOG(INFO) << "Successfully refilled tokens";
}

Expand Down

0 comments on commit 4f181d7

Please sign in to comment.