[Modify] Replace it

This commit is contained in:
sta 2016-04-11 14:31:47 +09:00
parent cc627534f8
commit ea664163c4

View File

@ -483,7 +483,15 @@ namespace WebSocketSharp.Net
private void close (bool force)
{
EndPointManager.RemoveListener (this);
cleanup (force);
lock (_ctxRegistrySync) {
if (!force)
sendServiceUnavailable ();
}
cleanupContextRegistry ();
cleanupConnections ();
cleanupWaitQueue (new ObjectDisposedException (GetType ().ToString ()));
}
private HttpListenerContext getContextFromQueue ()