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:
Benjamin Smedberg 2014-02-28 16:40:38 -08:00
parent a36487f6e4
commit 326dd57398

View File

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