Issue #2073 - m-c 1546500: Avoid dispatching synchronous thread shutdown runnables

This commit is contained in:
Martok 2023-01-01 13:46:00 +01:00 committed by roytam1
commit a6a420259c
4 changed files with 4 additions and 4 deletions

View file

@ -1770,7 +1770,7 @@ Manager::~Manager()
// Don't spin the event loop in the destructor waiting for the thread to
// shutdown. Defer this to the main thread, instead.
MOZ_ALWAYS_SUCCEEDS(NS_DispatchToMainThread(NewRunnableMethod(ioThread, &nsIThread::Shutdown)));
MOZ_ALWAYS_SUCCEEDS(NS_DispatchToMainThread(NewRunnableMethod(ioThread, &nsIThread::AsyncShutdown)));
}
void