Skip to content

Commit c987711

Browse files
ilka-schulzIlka Schulz
andauthored
make connection thread daemonic (otherwise, programs can have trouble terminating) (#24)
Co-authored-by: Ilka Schulz <schulz@ifes.uni-hannover.de>
1 parent 6f48d50 commit c987711

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

thales_remote/connection.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,9 @@ def _startTelegramListener(self) -> None:
304304
starts the thread handling the asyncronously incoming data
305305
"""
306306
self._receiving_worker_is_running = True
307-
self._receiving_worker = threading.Thread(target=self._telegramListenerJob)
307+
self._receiving_worker = threading.Thread(
308+
target=self._telegramListenerJob, daemon=True
309+
)
308310
self._receiving_worker.start()
309311
return
310312

0 commit comments

Comments
 (0)