Minor bug fix

This commit is contained in:
Bernardo Damele 2011-07-26 10:10:05 +00:00
parent 938716e361
commit ea00c94648

View File

@ -130,7 +130,7 @@ def main():
kb.threadException = True kb.threadException = True
# Reference: http://stackoverflow.com/questions/1635080/terminate-a-multi-thread-python-program # Reference: http://stackoverflow.com/questions/1635080/terminate-a-multi-thread-python-program
if conf.threads > 1: if hasattr(conf, "threads") and conf.threads > 1:
os._exit(0) os._exit(0)
if __name__ == "__main__": if __name__ == "__main__":