report network disconnections

This commit is contained in:
chombier 2002-08-24 10:16:42 +00:00
parent 3bed6d4d52
commit 9efb40bd4c
1 changed files with 5 additions and 1 deletions

View File

@ -36,8 +36,12 @@ pascal void GUSIOTNotify(
sock->fEndpoint = static_cast<EndpointRef>(cookie);
break;
default:
if (code != kOTProviderWillClose)
if (code != kOTProviderWillClose
&& code != kOTProviderWillClose)
result = 0;
else if (!result) {
result = kENETDOWNErr;
}
}
sock->SetAsyncMacError(result);
sock->Wakeup();