Skip to content

Commit

Permalink
[crunch.py] add finally block with Pool.close and Pool.join
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissimpkins committed Jun 12, 2022
1 parent 729ff20 commit f112530
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/crunch.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ def main(argv):
if is_gui(argv):
log_error(str(e))
sys.exit(1)
finally:
p.close()
p.join()

# end of successful processing, exit code 0
if is_gui(argv):
Expand Down

0 comments on commit f112530

Please sign in to comment.