[Modify] Add a check
This commit is contained in:
parent
e8fc325e63
commit
b76349936b
@ -683,7 +683,11 @@ namespace WebSocketSharp.Net
|
|||||||
if (_disposed)
|
if (_disposed)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (_listening) {
|
||||||
|
_listening = false;
|
||||||
close (false);
|
close (false);
|
||||||
|
}
|
||||||
|
|
||||||
_disposed = true;
|
_disposed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user