[Modify] Add a check

master
sta 10 years ago
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…
Cancel
Save