mirror of https://github.com/macssh/macssh.git
clove provider upon kOTProviderWillClose
This commit is contained in:
parent
bad7115afe
commit
bd8f56c934
|
@ -190,10 +190,9 @@ pascal void GUSIOTNetDBNotify(
|
|||
if (code != kOTProviderWillClose)
|
||||
result = 0;
|
||||
else {
|
||||
/* NONO : need to re-create the fSvc */
|
||||
netdb->fSvc = static_cast<InetSvcRef>(NULL);
|
||||
netdb->fCreationContext = static_cast<GUSIContext *>(NULL);
|
||||
/* NONO */
|
||||
OTCloseProvider(netdb->fSvc);
|
||||
netdb->fSvc = NULL;
|
||||
netdb->fCreationContext = NULL;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -203,6 +202,9 @@ pascal void GUSIOTNetDBNotify(
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* we need to track open()/dup()/close()/socket() calls to close files/sockets
|
||||
* upon abort/exit
|
||||
|
|
Loading…
Reference in New Issue