mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-01-09 10:09:57 +01:00
some improvements
This commit is contained in:
parent
056e7857e5
commit
06549b8e26
|
|
@ -109,5 +109,7 @@ class TCPClient:
|
||||||
self._sock.sendall(bytes(header + aliveMsg, "utf-8"))
|
self._sock.sendall(bytes(header + aliveMsg, "utf-8"))
|
||||||
return True
|
return True
|
||||||
except socket.error as e:
|
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)
|
logging.error(e)
|
||||||
return False
|
return False
|
||||||
|
|
|
||||||
0
networking.py
Normal file
0
networking.py
Normal file
|
|
@ -173,7 +173,7 @@ def test_serverStopsWhileConnected(getRunningServer, getClient):
|
||||||
getRunningServer.stop()
|
getRunningServer.stop()
|
||||||
timeout = 10
|
timeout = 10
|
||||||
while getClient.isConnected:
|
while getClient.isConnected:
|
||||||
print(timeout)
|
time.sleep(0.1)
|
||||||
timeout = timeout - 1
|
timeout = timeout - 1
|
||||||
if timeout is 0:
|
if timeout is 0:
|
||||||
assert 0
|
assert 0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue