[Modify] Replace it

This commit is contained in:
sta 2016-04-07 17:47:11 +09:00
parent fe86f95d5e
commit e14fc1b531

View File

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