Wait for PoW processes to exit before returning a result. Hopefully not needed.
This commit is contained in:
parent
4aca81e21f
commit
30d829d0d4
|
@ -64,6 +64,7 @@ def _doFastPoW(target, initialHash):
|
||||||
if result[i].ready():
|
if result[i].ready():
|
||||||
result = result[i].get()
|
result = result[i].get()
|
||||||
pool.terminate()
|
pool.terminate()
|
||||||
|
pool.join() #Wait for the workers to exit...
|
||||||
return result[0], result[1]
|
return result[0], result[1]
|
||||||
time.sleep(0.2)
|
time.sleep(0.2)
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user