keep iterating over endpoints if one is found to be done

Even if one endpoint is done others may be ready to announce so we need
to keep going.

Fixes #1992
This commit is contained in:
Steven Siloti 2017-05-15 20:53:51 -07:00 committed by Arvid Norberg
parent 893ef6479f
commit bc019f241b
1 changed files with 1 additions and 1 deletions

View File

@ -2753,7 +2753,7 @@ namespace libtorrent {
continue;
if (ae.tier > state.tier && state.sent_announce
&& !settings().get_bool(settings_pack::announce_to_all_tiers)) break;
&& !settings().get_bool(settings_pack::announce_to_all_tiers)) continue;
if (aep.is_working()) { state.tier = ae.tier; state.sent_announce = false; }
if (!aep.can_announce(now, is_seed(), ae.fail_limit))
{