From ea6a61a701af81762ea50c4b988fcbb533ec67b8 Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Wed, 31 Mar 2021 16:27:49 +0800 Subject: [PATCH] 1.2.18 --- docs/meshtastic/index.html | 10 ++++++++-- setup.py | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/meshtastic/index.html b/docs/meshtastic/index.html index 7bccb86..a6a0d41 100644 --- a/docs/meshtastic/index.html +++ b/docs/meshtastic/index.html @@ -1291,7 +1291,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): @@ -3418,7 +3421,10 @@ hostname {string} – Hostname/IP address of the device to connect to