mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-05 14:25:45 +00:00
some improvements
This commit is contained in:
parent
056e7857e5
commit
06549b8e26
3 changed files with 3 additions and 1 deletions
|
|
@ -109,5 +109,7 @@ class TCPClient:
|
|||
self._sock.sendall(bytes(header + aliveMsg, "utf-8"))
|
||||
return True
|
||||
except socket.error as e:
|
||||
if e.errno is 32: # broken pipe - no one will read from this pipe anymore
|
||||
return False
|
||||
logging.error(e)
|
||||
return False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue