From 14cb23cec24a5c1da86907728ea69eb073fdcd07 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 12 Feb 2007 22:45:23 +0000 Subject: [PATCH] tracker announces will always request 50 peers, unless it's stopped --- src/torrent.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/torrent.cpp b/src/torrent.cpp index b41313913..dcec48d50 100755 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -1123,8 +1123,7 @@ namespace libtorrent if (m_event != tracker_request::stopped) m_event = tracker_request::none; req.url = m_trackers[m_currently_trying_tracker].url; - assert(m_connections_quota.given > 0); - req.num_want = std::max(m_connections_quota.given - num_peers(), 10); + req.num_want = 50; // if we are aborting. we don't want any new peers if (req.event == tracker_request::stopped) req.num_want = 0;