diff --git a/lsh/MacOS/src/GUSIPatches.cp b/lsh/MacOS/src/GUSIPatches.cp index 0e394fc..4ee1d7e 100755 --- a/lsh/MacOS/src/GUSIPatches.cp +++ b/lsh/MacOS/src/GUSIPatches.cp @@ -190,10 +190,9 @@ pascal void GUSIOTNetDBNotify( if (code != kOTProviderWillClose) result = 0; else { - /* NONO : need to re-create the fSvc */ - netdb->fSvc = static_cast(NULL); - netdb->fCreationContext = static_cast(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