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