mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1246850 - check the NotifyIpInterfaceChange() return code, r=mcmanus
This commit is contained in:
parent
2a9ab83f5b
commit
77c790c23c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user