Parcourir la source

simplify business detection

david il y a 7 ans
Parent
commit
f6c09d3f4d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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()