From 30d829d0d476c73d3663749a1fb7529300791c0a Mon Sep 17 00:00:00 2001 From: Arceliar Date: Thu, 6 Jun 2013 19:30:57 +0200 Subject: [PATCH] Wait for PoW processes to exit before returning a result. Hopefully not needed. --- src/proofofwork.py | 1 + 1 file changed, 1 insertion(+) 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)