Skip to content

Commit

Permalink
explicitly shutdown pools
Browse files Browse the repository at this point in the history
  • Loading branch information
Berserker66 committed Sep 18, 2016
1 parent 988b7f6 commit b6e5a20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion omnitool/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ def relmove(rel):
lasttask.result()

splice_gmaps(threadpool, tilefolder, tempfiles, header["name"].decode())
threadpool.shutdown()
pygame.quit()
return

Expand Down Expand Up @@ -457,7 +458,7 @@ def render_base_to_master(task):
done += 1
loadingbar.set_progress(done * fraction, caption + " %4d of %4d" % (done, total))
current_area //= 2

processpool.shutdown()
if __name__ == "__main__":
worlds = list(get_worlds(False))
b = {}
Expand Down

0 comments on commit b6e5a20

Please sign in to comment.