try and fix DNS and socket errors from being retried

This commit is contained in:
Amber H. Brown 2019-06-24 11:11:32 +10:00
parent 7bb35a3288
commit 04b5175fcf

View file

@ -303,7 +303,8 @@ class PerDestinationQueue(object):
break
# Release the lock after all the work is done
acquired_lock = acquired_lock.release()
reactor.callLater(acquired_lock.release, 0.0)
acquired_lock = None
except NotRetryingDestination as e:
logger.debug(
"TX [%s] not ready for retry yet (next retry at %s) - "
@ -341,7 +342,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:
acquired_lock.release()
reactor.callLater(acquired_lock.release, 0.0)
def _get_rr_edus(self, force_flush):
if not self._pending_rrs: