mirror of
https://github.com/transmission/transmission
synced 2025-01-03 13:35:36 +00:00
fix: clear tracker error if tracker is removed (#7141)
This commit is contained in:
parent
3ec271fe5a
commit
5cc0934ddb
1 changed files with 1 additions and 1 deletions
|
@ -2086,7 +2086,7 @@ void tr_torrent::on_announce_list_changed()
|
||||||
if (auto const& error_url = error_.announce_url(); !std::empty(error_url))
|
if (auto const& error_url = error_.announce_url(); !std::empty(error_url))
|
||||||
{
|
{
|
||||||
auto const& ann = metainfo().announce_list();
|
auto const& ann = metainfo().announce_list();
|
||||||
if (std::any_of(
|
if (std::none_of(
|
||||||
std::begin(ann),
|
std::begin(ann),
|
||||||
std::end(ann),
|
std::end(ann),
|
||||||
[error_url](auto const& tracker) { return tracker.announce == error_url; }))
|
[error_url](auto const& tracker) { return tracker.announce == error_url; }))
|
||||||
|
|
Loading…
Reference in a new issue