зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1777848 - Don't create speculative connection during shutdown, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D151145
This commit is contained in:
Родитель
f2dbdbfde7
Коммит
4ba91ba30e
|
@ -3353,6 +3353,11 @@ void nsHttpConnectionMgr::DoSpeculativeConnectionInternal(
|
|||
MOZ_ASSERT(OnSocketThread(), "not on socket thread");
|
||||
MOZ_ASSERT(aTrans);
|
||||
MOZ_ASSERT(aEnt);
|
||||
if (!gHttpHandler->Active()) {
|
||||
// Do nothing if we are shutting down.
|
||||
return;
|
||||
}
|
||||
|
||||
if (aFetchHTTPSRR && NS_SUCCEEDED(aTrans->FetchHTTPSRR())) {
|
||||
// nsHttpConnectionMgr::DoSpeculativeConnection will be called again when
|
||||
// HTTPS RR is available.
|
||||
|
|
Загрузка…
Ссылка в новой задаче