[network] Clear PAC loader when the load failed

This commit is contained in:
Moonchild 2022-07-03 12:28:57 +00:00 committed by roytam1
commit 991e2ffb4b

View file

@ -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