stop ws reconnection after calling disconnect

This commit is contained in:
Salvatore Giordano
2021-01-26 10:12:13 +01:00
parent 463dc96a26
commit 773b8d5579
@@ -293,6 +293,7 @@ class WebSocket {
logger.info('disconnecting');
_connectionCompleter = Completer();
_cancelTimers();
_reconnecting = false;
_manuallyClosed = true;
connectionStatus.value = ConnectionStatus.disconnected;
connectionStatus.dispose();