[Modify] Polish it
This commit is contained in:
parent
8b6f5cf2b7
commit
76ecc3fbbf
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user