diff options
author | Erik Johnston <erik@matrix.org> | 2016-02-18 16:39:28 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-02-18 16:39:28 +0000 |
commit | e6c5e3f28a234be342cf5e4f15a925e65e82fd0d (patch) | |
tree | 2f00aa59b7c1f6f96ddee0b87b8de39268d23748 | |
parent | Remove unused param from get_max_token (diff) | |
download | synapse-e6c5e3f28a234be342cf5e4f15a925e65e82fd0d.tar.xz |
Close cursor
-rw-r--r-- | synapse/storage/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py index fcb968e8f4..9be1d12fac 100644 --- a/synapse/storage/__init__.py +++ b/synapse/storage/__init__.py @@ -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"]) |