summaryrefslogtreecommitdiff
path: root/netwerk/base/nsPACMan.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-07-03 12:28:57 +0000
committerMoonchild <moonchild@palemoon.org>2022-07-03 12:28:57 +0000
commitae9de9b8911551fe38e377b3797cd309050fe62f (patch)
tree51b60ecaf63b73728ec04e2ff60cc7926a4b0e28 /netwerk/base/nsPACMan.cpp
parent438c04383f16dd54f75e7ff4b715152c96f8aa6f (diff)
downloaduxp-ae9de9b8911551fe38e377b3797cd309050fe62f.tar.gz
[network] Clear PAC loader when the load failed
Diffstat (limited to 'netwerk/base/nsPACMan.cpp')
-rw-r--r--netwerk/base/nsPACMan.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/netwerk/base/nsPACMan.cpp b/netwerk/base/nsPACMan.cpp
index 37d3e8b6bb..f00c3cc434 100644
--- a/netwerk/base/nsPACMan.cpp
+++ b/netwerk/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