mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 00:43:37 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ class RTorrent:
|
||||||
while i < MAX_RETRIES:
|
while i < MAX_RETRIES:
|
||||||
for torrent in self.get_torrents():
|
for torrent in self.get_torrents():
|
||||||
if torrent.info_hash != info_hash:
|
if torrent.info_hash != info_hash:
|
||||||
break
|
continue
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
i += 1
|
i += 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue