mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-04 15:12:23 -05:00
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:
parent
34da3f53d8
commit
370c6d6f73
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user