mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-01-09 18:20:04 +01:00
fix client.isConnected()
This commit is contained in:
parent
504728191d
commit
549fbafc29
|
|
@ -108,8 +108,9 @@ class TCPClient:
|
|||
"""!Property of client connected state"""
|
||||
try:
|
||||
if self._sock:
|
||||
read, write, _ = select.select([], [self._sock], [], 0.1)
|
||||
if read and write:
|
||||
_, write, _ = select.select([], [self._sock], [], 0.1)
|
||||
if write:
|
||||
self._sock.send(bytes("", "utf-8"))
|
||||
return True
|
||||
return False
|
||||
except:
|
||||
|
|
|
|||
Loading…
Reference in a new issue