Skip to content

Commit

Permalink
Use daemon threads for background tasks also in the threaded client
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Sep 6, 2023
1 parent 213db49 commit 5357808
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/engineio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ def start_background_task(self, target, *args, **kwargs):
on which the ``join()`` method can be invoked to wait for the task to
complete.
"""
th = threading.Thread(target=target, args=args, kwargs=kwargs)
th = threading.Thread(target=target, args=args, kwargs=kwargs,
daemon=True)
th.start()
return th

Expand Down

0 comments on commit 5357808

Please sign in to comment.