diff --git a/src/proofofwork.py b/src/proofofwork.py index 36c5563e..058e4bf3 100644 --- a/src/proofofwork.py +++ b/src/proofofwork.py @@ -64,6 +64,7 @@ def _doFastPoW(target, initialHash): if result[i].ready(): result = result[i].get() pool.terminate() + pool.join() #Wait for the workers to exit... return result[0], result[1] time.sleep(0.2)