[Modify] Polish it
This commit is contained in:
parent
5faef22008
commit
1ebf72c957
@ -455,7 +455,12 @@ namespace WebSocketSharp.Net
|
||||
|
||||
private void close (bool force)
|
||||
{
|
||||
if (_listening) {
|
||||
if (!_listening) {
|
||||
_disposed = true;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
_listening = false;
|
||||
|
||||
cleanupContextQueue (force);
|
||||
@ -466,7 +471,6 @@ namespace WebSocketSharp.Net
|
||||
cleanupWaitQueue (ex);
|
||||
|
||||
EndPointManager.RemoveListener (this);
|
||||
}
|
||||
|
||||
_disposed = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user