minor fix

This commit is contained in:
Miroslav Stampar 2011-11-23 03:03:31 +00:00
parent 6bfb7c2137
commit d5cddd40f6

View File

@ -181,7 +181,8 @@ def runThreads(numThreads, threadFunction, cleanupFunction=None, forwardExceptio
kb.threadContinue = True
kb.threadException = False
conf.hashDB.flush(True)
if conf.get('hashDB', None):
conf.hashDB.flush(True)
if cleanupFunction:
cleanupFunction()