mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
minor fix
This commit is contained in:
parent
c1486ed4be
commit
eaaf6041b9
|
@ -30,12 +30,13 @@ class HashDB(object):
|
|||
|
||||
cursor = property(_get_cursor)
|
||||
|
||||
def __del__(self):
|
||||
self.close()
|
||||
|
||||
def close(self):
|
||||
threadData = getCurrentThreadData()
|
||||
try:
|
||||
self.cursor.connection.close()
|
||||
if threadData.hashDBCursor:
|
||||
threadData.hashDBCursor.close()
|
||||
threadData.hashDBCursor.connection.close()
|
||||
threadData.hashDBCursor = None
|
||||
except:
|
||||
pass
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user