mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-11 17:15:06 -04:00
Make sure that we close cursors before returning from a query (#6408)
There are lots of words in the comment as to why this is a good idea. Fixes #6403.
This commit is contained in:
parent
07929bd62f
commit
c01d543584
3 changed files with 44 additions and 10 deletions
|
@ -280,7 +280,7 @@ class ReceiptsWorkerStore(SQLBaseStore):
|
|||
args.append(limit)
|
||||
txn.execute(sql, args)
|
||||
|
||||
return (r[0:5] + (json.loads(r[5]),) for r in txn)
|
||||
return list(r[0:5] + (json.loads(r[5]),) for r in txn)
|
||||
|
||||
return self.runInteraction(
|
||||
"get_all_updated_receipts", get_all_updated_receipts_txn
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue