mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-20 09:14:18 -05:00
Always run txn.after_callbacks
This commit is contained in:
parent
4e1cebd56f
commit
99bbd90b0d
@ -305,11 +305,12 @@ class SQLBaseStore(object):
|
||||
func, *args, **kwargs
|
||||
)
|
||||
|
||||
try:
|
||||
with PreserveLoggingContext():
|
||||
result = yield self._db_pool.runWithConnection(
|
||||
inner_func, *args, **kwargs
|
||||
)
|
||||
|
||||
finally:
|
||||
for after_callback, after_args in after_callbacks:
|
||||
after_callback(*after_args)
|
||||
defer.returnValue(result)
|
||||
|
Loading…
Reference in New Issue
Block a user