summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-02-18 16:39:28 +0000
committerErik Johnston <erik@matrix.org>2016-02-18 16:39:28 +0000
commite6c5e3f28a234be342cf5e4f15a925e65e82fd0d (patch)
tree2f00aa59b7c1f6f96ddee0b87b8de39268d23748
parentRemove unused param from get_max_token (diff)
downloadsynapse-e6c5e3f28a234be342cf5e4f15a925e65e82fd0d.tar.xz
Close cursor
-rw-r--r--synapse/storage/__init__.py1
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"])