fix in TCPClient

This commit is contained in:
Bastian Schroll 2019-09-20 18:19:46 +02:00
parent 6f40095c52
commit d87247783d
2 changed files with 6 additions and 4 deletions

View file

@ -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