diff --git a/rulegen.py b/rulegen.py index 389d578..492f31b 100755 --- a/rulegen.py +++ b/rulegen.py @@ -919,7 +919,7 @@ class RuleGen: else: # Signal workers to stop. - for i in range(multiprocessing.cpu_count()): + for i in range(self.threads): passwords_queue.put(None) # Wait for all of the queued passwords to finish.