mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
fixes bug 190000 "crashes [@ PR_SetPollableEvent]" r=pavlov sr=bz a=dbaron
This commit is contained in:
parent
2f7102abeb
commit
ad5d76a4a1
@ -327,8 +327,14 @@ nsSocketTransportService::Init()
|
||||
if (mInitialized)
|
||||
return NS_OK;
|
||||
|
||||
if (!mThreadEvent)
|
||||
if (!mThreadEvent) {
|
||||
mThreadEvent = PR_NewPollableEvent();
|
||||
// NOTE: per bug 190000, this failure could be caused by Zone-Alarm
|
||||
// or similar software. Though this could also be a low-memory
|
||||
// error, we'll treat it like being offline in the hopes of giving
|
||||
// the user a better error message.
|
||||
NS_ENSURE_TRUE(mThreadEvent, NS_ERROR_OFFLINE);
|
||||
}
|
||||
|
||||
nsresult rv = NS_NewThread(&mThread, this, 0, PR_JOINABLE_THREAD);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
Loading…
Reference in New Issue
Block a user