Don't wait to retry connection if out of DNS records.

This commit is contained in:
Lance Stout 2012-07-29 17:26:04 -07:00
parent 5ae6c8f8fa
commit 422e77ae40

View file

@ -468,7 +468,7 @@ class XMLStream(object):
log.debug("No remaining DNS records to try.")
self.dns_answers = None
if reattempt:
self.reconnect_delay = delay
self.reconnect_delay = None
return False
af = Socket.AF_INET