We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1aadf0 commit f8ad4feCopy full SHA for f8ad4fe
meshtastic/util.py
@@ -266,9 +266,10 @@ def reset(self):
266
class DeferredExecution:
267
"""A thread that accepts closures to run, and runs them as they are received"""
268
269
- def __init__(self, name=None):
+ def __init__(self, name):
270
self.queue = Queue()
271
- self.thread = threading.Thread(target=self._run, args=(), name=name)
+ # this thread must be marked as daemon, otherwise it will prevent clients from exiting
272
+ self.thread = threading.Thread(target=self._run, args=(), name=name, daemon=True)
273
self.thread.daemon = True
274
self.thread.start()
275
0 commit comments