bug 201012, get rid of offline warning in PostEvent, r/sr=darin

This commit is contained in:
axel%pike.org 2003-04-07 21:07:21 +00:00
parent 7304298c13
commit 7682da5d54

View File

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