зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1369002 - Stop warning if the mainThread is null in GetCurrentThread. r=froydnj
This commit is contained in:
Родитель
af6781b3fc
Коммит
5aeb1f0c4b
|
@ -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();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче