mirror of
https://github.com/meshtastic/python.git
synced 2026-05-19 05:46:14 -04:00
mark our reader thread as daemon, so that closing devices is (kinda) optional
This commit is contained in:
@@ -740,7 +740,7 @@ class StreamInterface(MeshInterface):
|
||||
self._wantExit = False
|
||||
|
||||
# FIXME, figure out why daemon=True causes reader thread to exit too early
|
||||
self._rxThread = threading.Thread(target=self.__reader, args=())
|
||||
self._rxThread = threading.Thread(target=self.__reader, args=(), daemon=True)
|
||||
|
||||
MeshInterface.__init__(self, debugOut=debugOut, noProto=noProto)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user