Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d5cddd4

Browse files
committed
minor fix
1 parent 6bfb7c2 commit d5cddd4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/core/threads.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ def runThreads(numThreads, threadFunction, cleanupFunction=None, forwardExceptio
181181
kb.threadContinue = True
182182
kb.threadException = False
183183

184-
conf.hashDB.flush(True)
184+
if conf.get('hashDB', None):
185+
conf.hashDB.flush(True)
185186

186187
if cleanupFunction:
187188
cleanupFunction()

0 commit comments

Comments
 (0)