Close cursor

This commit is contained in:
Erik Johnston 2016-02-18 16:39:28 +00:00
parent 42109a62a4
commit e6c5e3f28a
1 changed files with 1 additions and 0 deletions

View File

@ -212,6 +212,7 @@ class DataStore(RoomMemberStore, RoomStore,
txn = db_conn.cursor() txn = db_conn.cursor()
txn.execute(sql, (PresenceState.OFFLINE,)) txn.execute(sql, (PresenceState.OFFLINE,))
rows = self.cursor_to_dict(txn) rows = self.cursor_to_dict(txn)
txn.close()
for row in rows: for row in rows:
row["currently_active"] = bool(row["currently_active"]) row["currently_active"] = bool(row["currently_active"])