removed special case where interval is set to 2 minutes when num peers == 0 in tracker response
This commit is contained in:
parent
e66cfcfbcf
commit
5ea9d2eab4
|
@ -415,16 +415,7 @@ namespace libtorrent
|
||||||
m_currently_trying_tracker = 0;
|
m_currently_trying_tracker = 0;
|
||||||
|
|
||||||
m_duration = interval;
|
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 (complete >= 0) m_complete = complete;
|
||||||
if (incomplete >= 0) m_incomplete = incomplete;
|
if (incomplete >= 0) m_incomplete = incomplete;
|
||||||
|
|
Loading…
Reference in New Issue