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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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; }))