Minor refactoring

This commit is contained in:
Miroslav Stampar
2012-08-21 10:28:25 +02:00
parent 7a8ace78f9
commit b7415d36df
3 changed files with 4 additions and 4 deletions

View File

@@ -107,12 +107,12 @@ def main():
kb.threadContinue = False
kb.threadException = True
if conf.get("hashDB", None):
if conf.get("hashDB"):
try:
conf.hashDB.flush(True)
except KeyboardInterrupt:
pass
# Reference: http://stackoverflow.com/questions/1635080/terminate-a-multi-thread-python-program
if conf.get("threads", 0) > 1 or conf.get("dnsServer", None):
if conf.get("threads", 0) > 1 or conf.get("dnsServer"):
os._exit(0)