From 6136776097ebaeab63921399af4f0a33c4017414 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 9 Nov 2013 06:51:11 +0000 Subject: [PATCH] merged fix from RC_0_16 --- src/torrent.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/torrent.cpp b/src/torrent.cpp index c1f1e94b1..c60baaa13 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -2317,6 +2317,15 @@ namespace libtorrent return; } + // if we're not allowing peers, there's no point in announcing + if (e != tracker_request::stopped && !m_allow_peers) + { +#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_LOGGING + debug_log("*** announce_with_tracker: event != stopped && !m_allow_peers"); +#endif + return; + } + TORRENT_ASSERT(m_allow_peers || e == tracker_request::stopped); if (e == tracker_request::none && is_finished() && !is_seed())