[Modify] Move it
This commit is contained in:
parent
a751b81407
commit
e8634d9831
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user