Selaa lähdekoodia

simplify business detection

david 7 vuotta sitten
vanhempi
commit
f6c09d3f4d
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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()