mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
a36487f6e4
commit
326dd57398
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user