Patch for an Issue #1106

This commit is contained in:
Miroslav Stampar
2015-01-14 05:16:32 +01:00
parent 06ff8b3a16
commit f9a9ededb1
2 changed files with 4 additions and 2 deletions

View File

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