mirror of
https://github.com/esiur/esiur-dart.git
synced 2025-09-14 04:23:17 +00:00
AutoReconnect
This commit is contained in:
@@ -126,6 +126,8 @@ class WSocket extends ISocket {
|
||||
}
|
||||
|
||||
void close() {
|
||||
if (state == SocketState.Closed) return;
|
||||
|
||||
if (state != SocketState.Closed && state != SocketState.Terminated)
|
||||
_state = SocketState.Closed;
|
||||
|
||||
|
Reference in New Issue
Block a user