Bug 1369002 - Stop warning if the mainThread is null in GetCurrentThread. r=froydnj

This commit is contained in:
Eric Rahm 2017-06-20 09:51:29 -07:00
Родитель af6781b3fc
Коммит 5aeb1f0c4b
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -328,7 +328,7 @@ NS_IMETHODIMP
nsThreadManager::GetCurrentThread(nsIThread** aResult) nsThreadManager::GetCurrentThread(nsIThread** aResult)
{ {
// Keep this functioning during Shutdown // Keep this functioning during Shutdown
if (NS_WARN_IF(!mMainThread)) { if (!mMainThread) {
return NS_ERROR_NOT_INITIALIZED; return NS_ERROR_NOT_INITIALIZED;
} }
*aResult = GetCurrentThread(); *aResult = GetCurrentThread();