Fixed a case of an infintie reconnect loop.

This commit is contained in:
Tony Blyler 2014-05-21 09:31:51 -04:00
parent dee3c58e54
commit 6e94efb517

View file

@ -29,8 +29,8 @@ class rtorrentRPC:
# try to connect to the XMLRPC server
if not self.connect():
logging.warning('Indefinitely retrying to reconnect to "%s"' % self.connectString)
while True:
self.reconnect()
while not self.reconnect():
pass
"""
Determines if we are connected to the XMLRPC server