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

This commit is contained in:
Daniel Stenberg 2016-02-09 01:31:00 +01:00
parent d836ff1556
commit 6158bd564f

View File

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