Avoid AlreadyCalledError from EDU sending failures

This commit is contained in:
Paul "LeoNerd" Evans 2014-08-28 16:19:16 +01:00
parent c46c806126
commit b1da3fa0a7

View file

@ -541,7 +541,8 @@ class _TransactionQueue(object):
)
def eb(failure):
deferred.errback(failure)
if not deferred.called:
deferred.errback(failure)
self._attempt_new_transaction(destination).addErrback(eb)
return deferred