From ae9de9b8911551fe38e377b3797cd309050fe62f Mon Sep 17 00:00:00 2001 From: Moonchild Date: Sun, 3 Jul 2022 12:28:57 +0000 Subject: [network] Clear PAC loader when the load failed --- netwerk/base/nsPACMan.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3