1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-22 07:42:37 +00:00

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

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