[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)
{
if (_listening) {
_listening = false;
cleanupContextQueue (!force);
cleanupContextRegistry ();
@ -464,8 +466,6 @@ namespace WebSocketSharp.Net
cleanupWaitQueue (ex);
EndPointManager.RemoveListener (this);
_listening = false;
}
_disposed = true;