Skip to content
Snippets Groups Projects
Commit e6c5e3f2 authored by Erik Johnston's avatar Erik Johnston
Browse files

Close cursor

parent 42109a62
Branches
Tags
No related merge requests found
......@@ -212,6 +212,7 @@ class DataStore(RoomMemberStore, RoomStore,
txn = db_conn.cursor()
txn.execute(sql, (PresenceState.OFFLINE,))
rows = self.cursor_to_dict(txn)
txn.close()
for row in rows:
row["currently_active"] = bool(row["currently_active"])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment