fixed announce issue

This commit is contained in:
Arvid Norberg 2010-09-11 04:16:29 +00:00
parent 3deec267f1
commit d590938856
2 changed files with 4 additions and 2 deletions

View File

@ -43,6 +43,8 @@
incoming connection
* added more detailed instrumentation of the disk I/O thread
* fixed announce issue
0.15.3 release
* fixed announce bug where event=completed would not be sent if it violated the

View File

@ -422,10 +422,10 @@ namespace libtorrent
{
// if we're a seed and we haven't sent a completed
// event, we need to let this announce through
if (is_seed && !complete_sent) return true;
bool need_send_complete = is_seed && !complete_sent;
return now >= next_announce
&& now >= min_announce
&& (now >= min_announce || need_send_complete)
&& (fails < fail_limit || fail_limit == 0)
&& !updating;
}