Bug 1376858 - Use SystemGroup to label nsIThread::AsyncShutdown, r=billm

MozReview-Commit-ID: IDPE6zhEnVI

--HG--
extra : rebase_source : c6c47ba59dc983ba0747f4a222a88e9fbac3efb2
This commit is contained in:
Sean V Kelley 2017-08-27 18:58:54 -07:00
Родитель 6a8d4baed7
Коммит b24a6c913e
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -146,8 +146,8 @@ nsThreadPool::ShutdownThread(nsIThread* aThread)
// shutdown requires this thread have an event loop (and it may not, see bug
// 10204784). The simplest way to cover all cases is to asynchronously
// shutdown aThread from the main thread.
NS_DispatchToMainThread(NewRunnableMethod("nsIThread::AsyncShutdown", aThread,
&nsIThread::AsyncShutdown));
SystemGroup::Dispatch(TaskCategory::Other, NewRunnableMethod(
"nsIThread::AsyncShutdown", aThread, &nsIThread::AsyncShutdown));
}
NS_IMETHODIMP