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
parent 245c6b9ed1
commit 0c44655c96

View File

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