summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2022-10-05 17:41:33 -0500
committerMatt A. Tobin <email@mattatobin.com>2022-10-05 17:41:33 -0500
commit0dc28df4dbd3549fb0922996036d95fce1cf90cf (patch)
treeee765b5d89339fdb752d93de829ff514260c97fb
parentdad4dab99722267de87d9c6b5fda34145c6361e7 (diff)
downloadaura-central-0dc28df4dbd3549fb0922996036d95fce1cf90cf.tar.gz
[System:Network] Clear PAC loader when the load failed.
-rw-r--r--system/network/base/nsPACMan.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/system/network/base/nsPACMan.cpp b/system/network/base/nsPACMan.cpp
index 37d3e8b6b..f00c3cc43 100644
--- a/system/network/base/nsPACMan.cpp
+++ b/system/network/base/nsPACMan.cpp
@@ -474,6 +474,11 @@ nsPACMan::StartLoading()
void
nsPACMan::OnLoadFailure()
{
+ // We have to clear the loader to indicate that we are currently not loading PAC.
+ if (mLoader) {
+ mLoader = nullptr;
+ }
+
int32_t minInterval = 5; // 5 seconds
int32_t maxInterval = 300; // 5 minutes