forked from premiere/premiere-libtorrent
*** empty log message ***
This commit is contained in:
parent
6867b7e79c
commit
62d633e03f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue