No need to continue processing loop if an error ocurred and auto_reconnect=False.

This commit is contained in:
Lance Stout 2011-11-14 11:21:05 -08:00
parent 5a6a65fd9f
commit 0c86f8288d

View file

@ -1111,11 +1111,8 @@ class XMLStream(object):
if not self.stop.is_set(): if not self.stop.is_set():
log.exception('Connection error.') log.exception('Connection error.')
if not self.stop.is_set(): if not self.stop.is_set() and self.auto_reconnect:
if self.auto_reconnect: self.reconnect()
self.reconnect()
else:
continue
else: else:
self.disconnect() self.disconnect()
break break