summary refs log tree commit diff
path: root/synapse/storage/deviceinbox.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-01-10 15:15:25 +0000
committerErik Johnston <erik@matrix.org>2017-01-10 15:15:25 +0000
commitab655dca339f8d4168079cc2b4529dc50265fc83 (patch)
tree275eb661253c052908056cfd5c424bcc4365c2e8 /synapse/storage/deviceinbox.py
parentDon't disable autocommit (diff)
downloadsynapse-ab655dca339f8d4168079cc2b4529dc50265fc83.tar.xz
Explicitly close the cursor
Diffstat (limited to '')
-rw-r--r--synapse/storage/deviceinbox.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/storage/deviceinbox.py b/synapse/storage/deviceinbox.py
index b0ab70bafe..bde3b5cbbc 100644
--- a/synapse/storage/deviceinbox.py
+++ b/synapse/storage/deviceinbox.py
@@ -392,6 +392,7 @@ class DeviceInboxStore(BackgroundUpdateStore):
             txn.execute(
                 "DROP INDEX IF EXISTS device_inbox_stream_id"
             )
+            txn.close()
 
         yield self.runWithConnection(reindex_txn)