From d59093885699c46966b34ce16704c87b40fdcf92 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 11 Sep 2010 04:16:29 +0000 Subject: [PATCH] fixed announce issue --- ChangeLog | 2 ++ src/torrent_info.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 684d7aaa4..e92d31665 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/src/torrent_info.cpp b/src/torrent_info.cpp index 1fa88c14d..f103f8070 100644 --- a/src/torrent_info.cpp +++ b/src/torrent_info.cpp @@ -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; }