mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 06:45:33 +00:00
bug 201012, get rid of offline warning in PostEvent, r/sr=darin
This commit is contained in:
parent
7304298c13
commit
7682da5d54
@ -101,7 +101,8 @@ nsSocketTransportService::PostEvent(nsISocketEventHandler *handler,
|
||||
NS_ASSERTION(handler, "null handler");
|
||||
|
||||
nsAutoLock lock(mEventQLock);
|
||||
NS_ENSURE_TRUE(mInitialized, NS_ERROR_OFFLINE);
|
||||
if (!mInitialized)
|
||||
return NS_ERROR_OFFLINE;
|
||||
|
||||
SocketEvent *event = new SocketEvent(handler, type, uparam, vparam);
|
||||
if (!event)
|
||||
|
Loading…
x
Reference in New Issue
Block a user