File tree 1 file changed +9
-2
lines changed
vendor/bat-native-confirmations/src/bat/confirmations/internal
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -53,12 +53,19 @@ void RefillTokens::Refill(
53
53
54
54
public_key_ = public_key;
55
55
56
+ nonce_ = " " ;
57
+
56
58
RequestSignedTokens ();
57
59
}
58
60
59
61
void RefillTokens::RetryGettingSignedTokens () {
60
62
BLOG (INFO) << " Retry getting signed tokens" ;
61
63
64
+ if (nonce_.empty ()) {
65
+ RequestSignedTokens ();
66
+ return ;
67
+ }
68
+
62
69
GetSignedTokens ();
63
70
}
64
71
@@ -309,8 +316,8 @@ void RefillTokens::OnRefill(
309
316
BLOG (ERROR) << " Failed to refill tokens" ;
310
317
311
318
if (should_retry) {
312
- confirmations_->StartRetryingToGetRefillSignedTokens (
313
- kRetryGettingRefillSignedTokensAfterSeconds );
319
+ confirmations_->StartRetryingToGetRefillSignedTokens (
320
+ kRetryGettingRefillSignedTokensAfterSeconds );
314
321
}
315
322
316
323
return ;
You can’t perform that action at this time.
0 commit comments