Bug 1246850 - check the NotifyIpInterfaceChange() return code, r=mcmanus

This commit is contained in:
Daniel Stenberg 2016-02-09 01:31:00 +01:00
Родитель 124d661902
Коммит e9020d4387
1 изменённых файлов: 15 добавлений и 10 удалений

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

@ -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;
}