made the task thread a daemon to fix program termination problems

This commit is contained in:
Johannes Findeisen 2013-11-10 01:26:09 +01:00
commit bfcabe18e5

View file

@ -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):