try and fix DNS and socket errors from being retried

This commit is contained in:
Amber H. Brown 2019-06-24 11:16:46 +10:00
parent 7d35b7603f
commit 10c6a180b2

View file

@ -304,7 +304,7 @@ class PerDestinationQueue(object):
break
# Release the lock after all the work is done
self._reactor.callLater(acquired_lock.release, 0.0)
self._reactor.callLater(0.0, acquired_lock.release)
acquired_lock = None
except NotRetryingDestination as e:
logger.debug(
@ -343,7 +343,7 @@ class PerDestinationQueue(object):
# We want to be *very* sure we clear this after we stop processing
self.transmission_loop_running = False
if acquired_lock:
self._reactor.callLater(acquired_lock.release, 0.0)
self._reactor.callLater(0.0, acquired_lock.release)
def _get_rr_edus(self, force_flush):
if not self._pending_rrs: