fix: clear tracker error if tracker is removed (#7141)

This commit is contained in:
Yat Ho
2024-10-25 10:45:43 +08:00
committed by GitHub
parent 3ec271fe5a
commit 5cc0934ddb

View File

@@ -2086,7 +2086,7 @@ void tr_torrent::on_announce_list_changed()
if (auto const& error_url = error_.announce_url(); !std::empty(error_url))
{
auto const& ann = metainfo().announce_list();
if (std::any_of(
if (std::none_of(
std::begin(ann),
std::end(ann),
[error_url](auto const& tracker) { return tracker.announce == error_url; }))