mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
Fix infinite loop when searching for missing torrents by id (#7097)
This commit is contained in:
@@ -622,7 +622,14 @@ std::pair<Glib::RefPtr<Torrent>, guint> Session::Impl::find_torrent_by_id(tr_tor
|
|||||||
return { torrent, position };
|
return { torrent, position };
|
||||||
}
|
}
|
||||||
|
|
||||||
(current_torrent_id < torrent_id ? begin_position : end_position) = position;
|
if (current_torrent_id < torrent_id)
|
||||||
|
{
|
||||||
|
begin_position = position + 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
end_position = position;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return {};
|
return {};
|
||||||
|
|||||||
Reference in New Issue
Block a user