made the task thread a daemon to fix program termination problems
This commit is contained in:
parent
8a98041501
commit
bfcabe18e5
1 changed files with 1 additions and 0 deletions
|
|
@ -78,6 +78,7 @@ class TaskExecutor(object):
|
||||||
task_thread = Thread(target=self._run_worker_thread)
|
task_thread = Thread(target=self._run_worker_thread)
|
||||||
self._instantEnd = False
|
self._instantEnd = False
|
||||||
self._running = True
|
self._running = True
|
||||||
|
task_thread.daemon = True
|
||||||
task_thread.start()
|
task_thread.start()
|
||||||
|
|
||||||
def _run_worker_thread(self):
|
def _run_worker_thread(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue