Project

General

Profile

« Previous | Next » 

Revision 3119

sql.py: DbConn.close(): Reset the connection completely using reset()

View differences:

sql.py
189 189
    def connected(self): return self.__db != None
190 190
    
191 191
    def close(self):
192
        if self.connected(): self.db.close()
193
        self.__db = None
192
        if not self.connected(): return
193
        
194
        self.db.close()
195
        self.reset()
194 196
    
195 197
    def _db(self):
196 198
        if self.__db == None:

Also available in: Unified diff