mirror of
https://github.com/meshtastic/python.git
synced 2026-01-15 19:28:05 -05:00
fix race in integration test
This commit is contained in:
@@ -1204,7 +1204,10 @@ class TCPInterface(StreamInterface):
|
||||
# the socket here
|
||||
self._wantExit = True
|
||||
if not self.socket is None:
|
||||
self.socket.shutdown(socket.SHUT_RDWR)
|
||||
try:
|
||||
self.socket.shutdown(socket.SHUT_RDWR)
|
||||
except:
|
||||
pass # Ignore errors in shutdown, because we might have a race with the server
|
||||
self.socket.close()
|
||||
|
||||
def _writeBytes(self, b):
|
||||
|
||||
Reference in New Issue
Block a user