зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1246850 - check the NotifyIpInterfaceChange() return code, r=mcmanus
This commit is contained in:
Родитель
124d661902
Коммит
e9020d4387
|
@ -220,16 +220,21 @@ nsNotifyAddrListener::Run()
|
|||
false, // no initial notification
|
||||
&interfacechange);
|
||||
|
||||
do {
|
||||
ret = WaitForSingleObject(mCheckEvent, waitTime);
|
||||
if (!mShutdown) {
|
||||
waitTime = nextCoalesceWaitTime();
|
||||
}
|
||||
else {
|
||||
break;
|
||||
}
|
||||
} while (ret != WAIT_FAILED);
|
||||
sCancelMibChangeNotify2(interfacechange);
|
||||
if (ret == NO_ERROR) {
|
||||
do {
|
||||
ret = WaitForSingleObject(mCheckEvent, waitTime);
|
||||
if (!mShutdown) {
|
||||
waitTime = nextCoalesceWaitTime();
|
||||
}
|
||||
else {
|
||||
break;
|
||||
}
|
||||
} while (ret != WAIT_FAILED);
|
||||
sCancelMibChangeNotify2(interfacechange);
|
||||
} else {
|
||||
LOG(("Link Monitor: sNotifyIpInterfaceChange returned %d\n",
|
||||
(int)ret));
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче