mirror of https://github.com/macssh/macssh.git
report network disconnections
This commit is contained in:
parent
3bed6d4d52
commit
9efb40bd4c
|
@ -36,8 +36,12 @@ pascal void GUSIOTNotify(
|
||||||
sock->fEndpoint = static_cast<EndpointRef>(cookie);
|
sock->fEndpoint = static_cast<EndpointRef>(cookie);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (code != kOTProviderWillClose)
|
if (code != kOTProviderWillClose
|
||||||
|
&& code != kOTProviderWillClose)
|
||||||
result = 0;
|
result = 0;
|
||||||
|
else if (!result) {
|
||||||
|
result = kENETDOWNErr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
sock->SetAsyncMacError(result);
|
sock->SetAsyncMacError(result);
|
||||||
sock->Wakeup();
|
sock->Wakeup();
|
||||||
|
|
Loading…
Reference in New Issue