We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9e71e85 + 111d61e commit 42ea29bCopy full SHA for 42ea29b
1 file changed
meshtastic/ble_interface.py
@@ -205,7 +205,7 @@ def close(self):
205
206
if self._want_receive:
207
self.want_receive = False # Tell the thread we want it to stop
208
- self._receiveThread.join()
+ self._receiveThread.join(timeout=2) # If bleak is hung, don't wait for the thread to exit (it is critical we disconnect)
209
self._receiveThread = None
210
211
if self.client:
0 commit comments