Better place for setting flags

This commit is contained in:
Miroslav Stampar 2016-01-11 00:03:22 +01:00
parent 1f01d6022c
commit 78a512500d

View File

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