diff --git a/dom/cache/Manager.cpp b/dom/cache/Manager.cpp index f294beb544..d2e63a6213 100644 --- a/dom/cache/Manager.cpp +++ b/dom/cache/Manager.cpp @@ -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 diff --git a/dom/indexedDB/ActorsParent.cpp b/dom/indexedDB/ActorsParent.cpp index 52f221d78a..0e6944e8ef 100644 --- a/dom/indexedDB/ActorsParent.cpp +++ b/dom/indexedDB/ActorsParent.cpp @@ -12487,7 +12487,7 @@ ConnectionPool::ShutdownThread(ThreadInfo& aThreadInfo) NS_DISPATCH_NORMAL)); MOZ_ALWAYS_SUCCEEDS(NS_DispatchToMainThread( - NewRunnableMethod(thread, &nsIThread::Shutdown))); + NewRunnableMethod(thread, &nsIThread::AsyncShutdown))); mTotalThreadCount--; } diff --git a/image/DecodePool.cpp b/image/DecodePool.cpp index 0aeed61547..f9d72df168 100644 --- a/image/DecodePool.cpp +++ b/image/DecodePool.cpp @@ -72,7 +72,7 @@ public: { // Threads have to be shut down from another thread, so we'll ask the // main thread to do it for us. - NS_DispatchToMainThread(NewRunnableMethod(aThisThread, &nsIThread::Shutdown)); + NS_DispatchToMainThread(NewRunnableMethod(aThisThread, &nsIThread::AsyncShutdown)); } /** diff --git a/netwerk/sctp/datachannel/DataChannel.cpp b/netwerk/sctp/datachannel/DataChannel.cpp index dfc993b108..99e0502dc9 100644 --- a/netwerk/sctp/datachannel/DataChannel.cpp +++ b/netwerk/sctp/datachannel/DataChannel.cpp @@ -238,7 +238,7 @@ DataChannelConnection::~DataChannelConnection() // Avoid spinning the event thread from here (which if we're mainthread // is in the event loop already) NS_DispatchToMainThread(WrapRunnable(nsCOMPtr(mInternalIOThread), - &nsIThread::Shutdown), + &nsIThread::AsyncShutdown), NS_DISPATCH_NORMAL); } } else {