Merge pull request #6 from matlink/patch-1

Fix bug when threads != cpu_count
This commit is contained in:
Peter Kacherginsky 2018-01-30 18:41:36 -08:00 committed by GitHub
commit a912127e33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.