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