瀏覽代碼

simplify business detection

david 7 年之前
父節點
當前提交
f6c09d3f4d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bot.py

+ 1 - 1
bot.py

@@ -98,7 +98,7 @@ def main():
             usage()
             continue
 
-        if not any([ not worker.busy for worker in workers]):
+        if all([ worker.busy for worker in workers]):
             print("Spawning a new worker as all are busy...")
             worker = IRCClient(command_queue=q, results_queue=rq)
             worker.start()