Browse Source

simplify business detection

david 7 năm trước cách đây
mục cha
commit
f6c09d3f4d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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()