This commit is contained in:
Salvatore Giordano
2021-01-26 10:27:35 +01:00
parent a8c44829b4
commit 20f37a6ff0
@@ -289,9 +289,9 @@ class WebSocket {
} }
/// Disconnects the WS and releases eventual resources /// Disconnects the WS and releases eventual resources
Future<void> disconnect() { Future<void> disconnect() async {
if (_manuallyClosed) { if (_manuallyClosed) {
return Future.value(); return;
} }
logger.info('disconnecting'); logger.info('disconnecting');
_connectionCompleter = Completer(); _connectionCompleter = Completer();