mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 386614 Crash [@ nsSocketTransportService::Shutdown] when toggling offline/online in 2 frames
guarding against reentrancy from thread shutdown processing events waiting for thread join. r=biesi sr=biesi
This commit is contained in:
parent
3caed131ce
commit
e427f99df5
@ -365,6 +365,9 @@ nsSocketTransportService::Init()
|
||||
if (mInitialized)
|
||||
return NS_OK;
|
||||
|
||||
if (mShuttingDown)
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
|
||||
if (!mThreadEvent) {
|
||||
mThreadEvent = PR_NewPollableEvent();
|
||||
//
|
||||
@ -401,6 +404,9 @@ nsSocketTransportService::Shutdown()
|
||||
if (!mInitialized)
|
||||
return NS_OK;
|
||||
|
||||
if (mShuttingDown)
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
|
||||
{
|
||||
nsAutoLock lock(mLock);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user