Skip to content

Commit

Permalink
Fixes unable to get ad tokens if tokens are not ready
Browse files Browse the repository at this point in the history
  • Loading branch information
tmancey committed Jan 8, 2020
1 parent f0b5302 commit af6ca70
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 af6ca70

Please sign in to comment.