From e7da4093a2a26253398e2d92352a03d3dabd106d Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Wed, 9 Dec 2020 08:44:22 +0800 Subject: [PATCH] the reader thread should be daemon, so failure to close if won't prevent app exit --- meshtastic/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshtastic/__init__.py b/meshtastic/__init__.py index 6bb914e..536aff6 100644 --- a/meshtastic/__init__.py +++ b/meshtastic/__init__.py @@ -563,7 +563,7 @@ class StreamInterface(MeshInterface): self._rxBuf = bytes() # empty self._wantExit = False - 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)