From 370c6d6f73371105315453418dec67abd03b5f13 Mon Sep 17 00:00:00 2001 From: Nicholas Herring Date: Wed, 28 May 2014 15:35:56 +0000 Subject: [PATCH] Fixed infinite loop in lib/rtorrent This code works when there is only one torrent in rtorrent. As soon as there are multiple torrents, this just spins on the same torrent IF the first torrent isn't the one it is looking for. In general this function just brute forces the server as I expect it is written for a local SCGI endpoint. (Side note, this was my second attempt to do this, since I didn't fork properly when I stated: https://github.com/echel0n/SickRage/pull/585) --- lib/rtorrent/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rtorrent/__init__.py b/lib/rtorrent/__init__.py index 93aeb3b3..290ef115 100644 --- a/lib/rtorrent/__init__.py +++ b/lib/rtorrent/__init__.py @@ -216,7 +216,7 @@ class RTorrent: while i < MAX_RETRIES: for torrent in self.get_torrents(): if torrent.info_hash != info_hash: - break + continue time.sleep(1) i += 1