mirror of
https://github.com/meshtastic/python.git
synced 2026-09-14 14:28:24 -04:00
bleak reads can hang if a device walks out of range, cope with that.
This commit is contained in:
1 parent
9e71e85c9f
commit
111d61ea0a
1 file changed
+1
-1
@@ -205,7 +205,7 @@ class BLEInterface(MeshInterface):
|
||||
|
||||
if self._want_receive:
|
||||
self.want_receive = False # Tell the thread we want it to stop
|
||||
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)
|
||||
self._receiveThread = None
|
||||
|
||||
if self.client:
|
||||
|
||||
Reference in new issue
Block a user