*** empty log message ***

This commit is contained in:
Arvid Norberg 2004-04-14 22:16:56 +00:00
parent 6867b7e79c
commit 62d633e03f
2 changed files with 5 additions and 1 deletions

View File

@ -433,7 +433,8 @@ namespace libtorrent
req.left = bytes_left();
req.event = m_event;
req.url = m_torrent_file.trackers()[m_currently_trying_tracker].url;
req.num_want = std::max((m_policy->get_max_connections()
req.num_want = std::max(
(m_policy->get_max_connections()
- m_policy->num_peers()) * 2, 0);
// default initialize, these should be set by caller

View File

@ -308,6 +308,9 @@ namespace libtorrent
, std::string const& password)
{
assert(req.num_want >= 0);
if (req.event == tracker_request::stopped)
req.num_want = 0;
try
{
std::string hostname; // hostname only