Skip to content

Commit

Permalink
make connection thread daemonic (otherwise, programs can have trouble…
Browse files Browse the repository at this point in the history
… terminating) (#24)

Co-authored-by: Ilka Schulz <schulz@ifes.uni-hannover.de>
  • Loading branch information
ilka-schulz and Ilka Schulz authored Nov 17, 2023
1 parent 6f48d50 commit c987711
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion thales_remote/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,9 @@ def _startTelegramListener(self) -> None:
starts the thread handling the asyncronously incoming data
"""
self._receiving_worker_is_running = True
self._receiving_worker = threading.Thread(target=self._telegramListenerJob)
self._receiving_worker = threading.Thread(
target=self._telegramListenerJob, daemon=True
)
self._receiving_worker.start()
return

Expand Down

0 comments on commit c987711

Please sign in to comment.