Always run txn.after_callbacks

This commit is contained in:
Erik Johnston 2016-08-15 09:45:44 +01:00
parent 4e1cebd56f
commit 99bbd90b0d

View File

@ -305,11 +305,12 @@ class SQLBaseStore(object):
func, *args, **kwargs func, *args, **kwargs
) )
try:
with PreserveLoggingContext(): with PreserveLoggingContext():
result = yield self._db_pool.runWithConnection( result = yield self._db_pool.runWithConnection(
inner_func, *args, **kwargs inner_func, *args, **kwargs
) )
finally:
for after_callback, after_args in after_callbacks: for after_callback, after_args in after_callbacks:
after_callback(*after_args) after_callback(*after_args)
defer.returnValue(result) defer.returnValue(result)