mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-04 22:07:45 +00:00
fix in TCPClient
This commit is contained in:
parent
6f40095c52
commit
d87247783d
2 changed files with 6 additions and 4 deletions
|
|
@ -103,5 +103,9 @@ class TCPClient:
|
|||
def isConnected(self):
|
||||
"""!Property of client connected state"""
|
||||
if self._sock:
|
||||
return True
|
||||
try:
|
||||
self._sock.sendall(bytes("", "utf-8"))
|
||||
return True
|
||||
except AttributeError:
|
||||
pass
|
||||
return False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue