2
0
mirror of https://github.com/esiur/esiur-dart.git synced 2026-04-03 17:58:21 +00:00

AutoReconnect

This commit is contained in:
2022-08-11 21:28:41 +03:00
parent c9ead2dabd
commit 083ea92d3b
10 changed files with 407 additions and 271 deletions

View File

@@ -153,6 +153,8 @@ class TCPSocket extends ISocket {
}
void close() {
if (state == SocketState.Closed) return;
if (state != SocketState.Closed && state != SocketState.Terminated)
_state = SocketState.Closed;