Skip to content

Commit 5f1630b

Browse files
yachtcaptain23Kevin Kuehler
authored and
Kevin Kuehler
committed
Retry referral ping if the referral ping has an error on retry.
Closes brave/brave-browser#15009
1 parent 1f0a3d6 commit 5f1630b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/brave_referrals/browser/brave_referrals_service.cc

+2
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,8 @@ void BraveReferralsService::InitReferral() {
626626
referral_init_loader_->SetAllowHttpErrorResults(true);
627627
referral_init_loader_->AttachStringForUpload(BuildReferralInitPayload(),
628628
"application/json");
629+
referral_init_loader_->SetRetryOptions(
630+
1, network::SimpleURLLoader::RetryMode::RETRY_ON_NETWORK_CHANGE);
629631
referral_init_loader_->DownloadToString(
630632
loader_factory,
631633
base::BindOnce(&BraveReferralsService::OnReferralInitLoadComplete,

0 commit comments

Comments
 (0)