Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Close cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Feb 18, 2016
1 parent 42109a6 commit e6c5e3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions synapse/storage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ def _get_active_presence(self, db_conn):
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"])
Expand Down

0 comments on commit e6c5e3f

Please sign in to comment.