mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 05:01:30 +00:00
minor fix
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user