Browse Source

F for fix.

Bob Huang 4 years ago
parent
commit
3159b0e403
1 changed files with 1 additions and 2 deletions
  1. 1 2
      backend_refactor/pool/thread_pool.py

+ 1 - 2
backend_refactor/pool/thread_pool.py

@@ -10,8 +10,7 @@ def worker():
 			task = q.get()
 			logging.debug(f"Working on {task}")
 			job, callback = task
-			job()
-			callback()
+			job(callback)
 			logging.debug(f"Working on {task} done.")
 			q.task_done()
 		except Exception as e: