lt 1643
This commit is contained in:
parent
d6fb920382
commit
c80a2e822b
|
@ -202,6 +202,10 @@ namespace libtorrent
|
|||
// completes correctly
|
||||
pi->pe_support = false;
|
||||
|
||||
// if this fails, we need to reconnect
|
||||
// fast.
|
||||
pi->connected = time_now() - seconds(m_ses.settings().min_reconnect_time);
|
||||
|
||||
write_pe1_2_dhkey();
|
||||
m_state = read_pe_dhkey;
|
||||
reset_recv_buffer(dh_key_len);
|
||||
|
|
|
@ -314,4 +314,3 @@ namespace libtorrent
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -739,6 +739,14 @@ namespace libtorrent
|
|||
m_allowed_fast.begin(), m_allowed_fast.end(), r.piece);
|
||||
if (i != m_allowed_fast.end()) m_allowed_fast.erase(i);
|
||||
}
|
||||
else
|
||||
{
|
||||
std::vector<int>::iterator i = std::find(m_suggested_pieces.begin()
|
||||
, m_suggested_pieces.end(), r.piece);
|
||||
if (i != m_suggested_pieces.end())
|
||||
m_suggested_pieces.erase(i);
|
||||
}
|
||||
|
||||
if (m_request_queue.empty())
|
||||
{
|
||||
if (m_download_queue.size() < 2)
|
||||
|
|
|
@ -1597,11 +1597,6 @@ namespace detail
|
|||
{
|
||||
assert(!save_path.empty());
|
||||
|
||||
// if you get this assert, you haven't managed to
|
||||
// open a listen port. call listen_on() first.
|
||||
if (m_listen_sockets.empty())
|
||||
throw std::runtime_error("no listen socket opened");
|
||||
|
||||
if (ti->begin_files() == ti->end_files())
|
||||
throw std::runtime_error("no files in torrent");
|
||||
|
||||
|
|
Loading…
Reference in New Issue