mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 19:43:50 +01:00
Fix bug where did not always resolve all the deferreds in _attempt_new_transaction
This commit is contained in:
parent
66b0596b7a
commit
d06dfc70b0
1 changed files with 6 additions and 2 deletions
|
@ -853,7 +853,10 @@ class _TransactionQueue(object):
|
||||||
|
|
||||||
# Ensures we don't continue until all callbacks on that
|
# Ensures we don't continue until all callbacks on that
|
||||||
# deferred have fired
|
# deferred have fired
|
||||||
|
try:
|
||||||
yield deferred
|
yield deferred
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
logger.debug("TX [%s] Yielded to callbacks", destination)
|
logger.debug("TX [%s] Yielded to callbacks", destination)
|
||||||
|
|
||||||
|
@ -865,6 +868,7 @@ class _TransactionQueue(object):
|
||||||
logger.exception(e)
|
logger.exception(e)
|
||||||
|
|
||||||
for deferred in deferreds:
|
for deferred in deferreds:
|
||||||
|
if not deferred.called:
|
||||||
deferred.errback(e)
|
deferred.errback(e)
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Reference in a new issue