forked from premiere/premiere-libtorrent
*** empty log message ***
This commit is contained in:
parent
3b551ac272
commit
ac0921599d
|
@ -1052,6 +1052,8 @@ Written by Arvid Norberg and Daniel Wallin. Copyright (c) 2003
|
|||
|
||||
Contributions by Magnus Jonsson
|
||||
|
||||
Thanks to Reimond Retz for bugfixes, suggestions and testing
|
||||
|
||||
Project is hosted by sourceforge.
|
||||
|
||||
|sf_logo|__
|
||||
|
|
|
@ -342,6 +342,9 @@ bool libtorrent::peer_connection::dispatch_message(int received)
|
|||
m_statistics.received_bytes(0, received);
|
||||
if (m_recv_pos < m_packet_size) return false;
|
||||
|
||||
// clear the request queue if the client isn't interested
|
||||
m_requests.clear();
|
||||
|
||||
#ifndef NDEBUG
|
||||
(*m_logger) << m_socket->sender().as_string() << " <== NOT_INTERESTED\n";
|
||||
#endif
|
||||
|
@ -468,7 +471,8 @@ bool libtorrent::peer_connection::dispatch_message(int received)
|
|||
&& r.start < m_torrent->torrent_file().piece_size(r.piece)
|
||||
&& r.length > 0
|
||||
&& r.length + r.start < m_torrent->torrent_file().piece_size(r.piece)
|
||||
&& !m_choked)
|
||||
&& !m_choked
|
||||
&& m_peer_interested)
|
||||
{
|
||||
m_requests.push_back(r);
|
||||
send_buffer_updated();
|
||||
|
|
|
@ -568,7 +568,6 @@ namespace libtorrent
|
|||
// called when a peer is no longer interested in us
|
||||
void policy::not_interested(peer_connection& c)
|
||||
{
|
||||
c.not_interested();
|
||||
}
|
||||
|
||||
bool policy::unchoke_one_peer()
|
||||
|
|
Loading…
Reference in New Issue