Skip to content

Commit 04c5702

Browse files
committed
[DEBUG] Use daemon threads for background tasks
1 parent 7e2bdfe commit 04c5702

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

studio/debugtools/debugger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def __init__(self):
8686
self._selection = DebugSelection(self)
8787

8888
self._stream_client = None
89-
threading.Thread(target=self.stream_client).start()
89+
threading.Thread(target=self.stream_client, daemon=True).start()
9090

9191
self.wm_protocol("WM_DELETE_WINDOW", self.exit)
9292
self.bind("<<SelectionChanged>>", self.on_selection_changed, True)

studio/debugtools/hook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def run_command(last_compiled):
378378
_code = e.code
379379
self.root.after(0, lambda: exit(_code))
380380

381-
threading.Thread(target=run_command, args=(self.last_compiled,)).start()
381+
threading.Thread(target=run_command, args=(self.last_compiled,), daemon=True).start()
382382
self.last_compiled = None
383383

384384
def exit(self):

0 commit comments

Comments
 (0)