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 2a9ab83f5b
commit 77c790c23c

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