Skip to content
Snippets Groups Projects
Commit d06dfc70 authored by Erik Johnston's avatar Erik Johnston
Browse files

Fix bug where did not always resolve all the deferreds in _attempt_new_transaction

parent 66b0596b
No related branches found
No related tags found
No related merge requests found
......@@ -853,7 +853,10 @@ class _TransactionQueue(object):
# Ensures we don't continue until all callbacks on that
# deferred have fired
yield deferred
try:
yield deferred
except:
pass
logger.debug("TX [%s] Yielded to callbacks", destination)
......@@ -865,7 +868,8 @@ class _TransactionQueue(object):
logger.exception(e)
for deferred in deferreds:
deferred.errback(e)
if not deferred.called:
deferred.errback(e)
finally:
# We want to be *very* sure we delete this after we stop processing
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment