the reader thread should be daemon, so failure to close if won't prevent app exit

This commit is contained in:
Kevin Hester
2020-12-09 08:44:22 +08:00
parent 78e70803d7
commit e7da4093a2

View File

@@ -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)