[Modify] Polish it

This commit is contained in:
sta
2021-04-05 21:15:24 +09:00
parent 8b6f5cf2b7
commit 76ecc3fbbf

View File

@@ -491,6 +491,7 @@ namespace WebSocketSharp.Net
{
if (_listening) {
_listening = false;
EndPointManager.RemoveListener (this);
}
@@ -499,7 +500,9 @@ namespace WebSocketSharp.Net
cleanupContextRegistry ();
cleanupConnections ();
cleanupWaitQueue (new ObjectDisposedException (GetType ().ToString ()));
var ex = new ObjectDisposedException (GetType ().ToString ());
cleanupWaitQueue (ex);
_disposed = true;
}