From 9ad776369fb5c7930c347c25ef8ce64eaee74243 Mon Sep 17 00:00:00 2001 From: khuxkm fbexl Date: Mon, 24 Jun 2019 04:30:14 +0000 Subject: [PATCH] Fix tasks library --- tasks.py | 1 + 1 file changed, 1 insertion(+) 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()