diff --git a/tasks.py b/tasks.py index edcf768..3fbe83c 100644 --- a/tasks.py +++ b/tasks.py @@ -29,6 +29,7 @@ class TaskPool: exit(0) def run(self): + if self.thread.is_alive(): return # don't set up an already set-up thread self.thread.daemon = True self.thread.start()