stop ws reconnection after calling disconnect
This commit is contained in:
@@ -293,6 +293,7 @@ class WebSocket {
|
|||||||
logger.info('disconnecting');
|
logger.info('disconnecting');
|
||||||
_connectionCompleter = Completer();
|
_connectionCompleter = Completer();
|
||||||
_cancelTimers();
|
_cancelTimers();
|
||||||
|
_reconnecting = false;
|
||||||
_manuallyClosed = true;
|
_manuallyClosed = true;
|
||||||
connectionStatus.value = ConnectionStatus.disconnected;
|
connectionStatus.value = ConnectionStatus.disconnected;
|
||||||
connectionStatus.dispose();
|
connectionStatus.dispose();
|
||||||
|
|||||||
Reference in New Issue
Block a user