mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-09 11:32:01 +01:00
Always run txn.after_callbacks
This commit is contained in:
parent
4e1cebd56f
commit
99bbd90b0d
1 changed files with 8 additions and 7 deletions
|
@ -305,13 +305,14 @@ class SQLBaseStore(object):
|
||||||
func, *args, **kwargs
|
func, *args, **kwargs
|
||||||
)
|
)
|
||||||
|
|
||||||
with PreserveLoggingContext():
|
try:
|
||||||
result = yield self._db_pool.runWithConnection(
|
with PreserveLoggingContext():
|
||||||
inner_func, *args, **kwargs
|
result = yield self._db_pool.runWithConnection(
|
||||||
)
|
inner_func, *args, **kwargs
|
||||||
|
)
|
||||||
for after_callback, after_args in after_callbacks:
|
finally:
|
||||||
after_callback(*after_args)
|
for after_callback, after_args in after_callbacks:
|
||||||
|
after_callback(*after_args)
|
||||||
defer.returnValue(result)
|
defer.returnValue(result)
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
|
|
Loading…
Reference in a new issue