removed special case where interval is set to 2 minutes when num peers == 0 in tracker response

This commit is contained in:
Arvid Norberg 2006-02-19 08:28:31 +00:00
parent e66cfcfbcf
commit 5ea9d2eab4
1 changed files with 1 additions and 10 deletions

View File

@ -415,16 +415,7 @@ namespace libtorrent
m_currently_trying_tracker = 0;
m_duration = interval;
if (peer_list.empty() && !is_seed())
{
// if the peer list is empty, we should contact the
// tracker soon again to see if there are any peers
m_next_request = second_clock::universal_time() + boost::posix_time::minutes(2);
}
else
{
m_next_request = second_clock::universal_time() + boost::posix_time::seconds(m_duration);
}
m_next_request = second_clock::universal_time() + boost::posix_time::seconds(m_duration);
if (complete >= 0) m_complete = complete;
if (incomplete >= 0) m_incomplete = incomplete;