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)
This commit is contained in:
Nicholas Herring 2014-05-28 15:35:56 +00:00
parent 34da3f53d8
commit 370c6d6f73
1 changed files with 1 additions and 1 deletions

View File

@ -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