This commit is contained in:
Miroslav Stampar
2016-03-22 13:24:54 +01:00
parent d20e9febf2
commit d496d99943
2 changed files with 5 additions and 2 deletions

View File

@@ -200,7 +200,10 @@ def runThreads(numThreads, threadFunction, cleanupFunction=None, forwardExceptio
for lock in kb.locks.values():
if lock.locked_lock():
lock.release()
try:
lock.release()
except thread.error:
pass
if conf.get("hashDB"):
conf.hashDB.flush(True)