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 push to the correct branch properly when I started: https://github.com/echel0n/SickRage/pull/585)