Fixed a case of an infintie reconnect loop.
This commit is contained in:
parent
dee3c58e54
commit
6e94efb517
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue