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