зеркало из https://github.com/mozilla/gecko-dev.git
Bug 881413 - Avoid a race condition in HTTP shutdown by explicitly cancelling nsHttpConnectionMgr::mTimer when we shut down the socket thread, r=mcmanus
This commit is contained in:
Родитель
ba7fe64b11
Коммит
94943cb1d8
|
@ -2132,6 +2132,10 @@ nsHttpConnectionMgr::OnMsgShutdown(int32_t, void *param)
|
|||
mTimeoutTick = nullptr;
|
||||
mTimeoutTickArmed = false;
|
||||
}
|
||||
if (mTimer) {
|
||||
mTimer->Cancel();
|
||||
mTimer = nullptr;
|
||||
}
|
||||
|
||||
// signal shutdown complete
|
||||
nsRefPtr<nsIRunnable> runnable =
|
||||
|
|
Загрузка…
Ссылка в новой задаче