tracker announces will always request 50 peers, unless it's stopped

This commit is contained in:
Arvid Norberg 2007-02-12 22:45:23 +00:00
parent 6a47eb501e
commit 14cb23cec2
1 changed files with 1 additions and 2 deletions

View File

@ -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;