From 6e94efb517be4c101b481e1fe173fb2dc17e691d Mon Sep 17 00:00:00 2001 From: Tony Blyler Date: Wed, 21 May 2014 09:31:51 -0400 Subject: [PATCH] Fixed a case of an infintie reconnect loop. --- src/hoarder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hoarder.py b/src/hoarder.py index 70e6247..5961b7a 100644 --- a/src/hoarder.py +++ b/src/hoarder.py @@ -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