[Modify] Move it

This commit is contained in:
sta 2021-04-22 19:51:53 +09:00
parent a751b81407
commit e8634d9831

View File

@ -456,6 +456,8 @@ namespace WebSocketSharp.Net
private void close (bool force) private void close (bool force)
{ {
if (_listening) { if (_listening) {
_listening = false;
cleanupContextQueue (!force); cleanupContextQueue (!force);
cleanupContextRegistry (); cleanupContextRegistry ();
@ -464,8 +466,6 @@ namespace WebSocketSharp.Net
cleanupWaitQueue (ex); cleanupWaitQueue (ex);
EndPointManager.RemoveListener (this); EndPointManager.RemoveListener (this);
_listening = false;
} }
_disposed = true; _disposed = true;