daemonize threads

This commit is contained in:
Alexey Avramov 2019-09-30 21:52:29 +09:00
parent 7da22f97f6
commit 422702fa8d

View File

@ -45,7 +45,7 @@ def start_thread(func, *a, **k):
""" run function in a new thread
"""
th = threading.Thread(target=func, args=a, kwargs=k)
th = threading.Thread(target=func, args=a, kwargs=k, daemon=True)
th_name = th.getName()
if debug_threading: