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)