[Modify] Replace it

master
sta 10 years ago
parent fe86f95d5e
commit e14fc1b531

@ -834,7 +834,14 @@ namespace WebSocketSharp.Net
return; return;
_listening = false; _listening = false;
close (false);
EndPointManager.RemoveListener (this);
lock (_ctxRegistrySync)
sendServiceUnavailable ();
cleanupContextRegistry ();
cleanupConnections ();
cleanupWaitQueue (new HttpListenerException (995, "The listener is stopped."));
} }
#endregion #endregion

Loading…
Cancel
Save