mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-07-28 20:16:28 +00:00
Minor refactoring
This commit is contained in:
parent
6ba46bf7cf
commit
ec1ac81e0a
4 changed files with 18 additions and 18 deletions
10
sqlmap.py
10
sqlmap.py
|
|
@ -300,7 +300,7 @@ def main():
|
|||
|
||||
if hasattr(conf, "api"):
|
||||
try:
|
||||
conf.database_cursor.disconnect()
|
||||
conf.databaseCursor.disconnect()
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
|
||||
|
|
@ -314,10 +314,10 @@ def main():
|
|||
time.sleep(0.01)
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
|
||||
# Reference: http://stackoverflow.com/questions/1635080/terminate-a-multi-thread-python-program
|
||||
if threading.activeCount() > 1:
|
||||
os._exit(0)
|
||||
finally:
|
||||
# Reference: http://stackoverflow.com/questions/1635080/terminate-a-multi-thread-python-program
|
||||
if threading.activeCount() > 1:
|
||||
os._exit(0)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue