Minor patch

This commit is contained in:
Miroslav Stampar 2016-01-10 23:27:32 +01:00
parent 2280cd191a
commit ab3ff0257a

View File

@ -191,12 +191,12 @@ def main():
if conf.get("showTime"): if conf.get("showTime"):
dataToStdout("\n[*] shutting down at %s\n\n" % time.strftime("%X"), forceOutput=True) dataToStdout("\n[*] shutting down at %s\n\n" % time.strftime("%X"), forceOutput=True)
if kb.get("tempDir"):
shutil.rmtree(kb.tempDir, ignore_errors=True)
kb.threadContinue = False kb.threadContinue = False
kb.threadException = True kb.threadException = True
if kb.get("tempDir"):
shutil.rmtree(kb.tempDir, ignore_errors=True)
if conf.get("hashDB"): if conf.get("hashDB"):
try: try:
conf.hashDB.flush(True) conf.hashDB.flush(True)