mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 982103 - nsSocketTransportService::Dispatch shouldn't NS_WARNING on missing thread r=sworkman
This commit is contained in:
parent
6b89bdd638
commit
8191b78909
@ -122,8 +122,8 @@ nsSocketTransportService::Dispatch(nsIRunnable *event, uint32_t flags)
|
||||
SOCKET_LOG(("STS dispatch [%p]\n", event));
|
||||
|
||||
nsCOMPtr<nsIThread> thread = GetThreadSafely();
|
||||
NS_ENSURE_TRUE(thread, NS_ERROR_NOT_INITIALIZED);
|
||||
nsresult rv = thread->Dispatch(event, flags);
|
||||
nsresult rv;
|
||||
rv = thread ? thread->Dispatch(event, flags) : NS_ERROR_NOT_INITIALIZED;
|
||||
if (rv == NS_ERROR_UNEXPECTED) {
|
||||
// Thread is no longer accepting events. We must have just shut it
|
||||
// down on the main thread. Pretend we never saw it.
|
||||
|
Loading…
Reference in New Issue
Block a user