fast extension fixes
This commit is contained in:
@@ -864,10 +864,6 @@ namespace libtorrent
|
|||||||
|
|
||||||
m_became_uninterested = time_now();
|
m_became_uninterested = time_now();
|
||||||
|
|
||||||
// clear the request queue if the client isn't interested
|
|
||||||
m_requests.clear();
|
|
||||||
// setup_send();
|
|
||||||
|
|
||||||
#ifdef TORRENT_VERBOSE_LOGGING
|
#ifdef TORRENT_VERBOSE_LOGGING
|
||||||
(*m_logger) << time_now_string() << " <== NOT_INTERESTED\n";
|
(*m_logger) << time_now_string() << " <== NOT_INTERESTED\n";
|
||||||
#endif
|
#endif
|
||||||
@@ -1777,6 +1773,10 @@ namespace libtorrent
|
|||||||
m_last_choke = time_now();
|
m_last_choke = time_now();
|
||||||
#endif
|
#endif
|
||||||
m_num_invalid_requests = 0;
|
m_num_invalid_requests = 0;
|
||||||
|
|
||||||
|
// reject the requests we have in the queue
|
||||||
|
std::for_each(m_requests.begin(), m_requests.end()
|
||||||
|
, bind(&peer_connection::write_reject_request, this, _1));
|
||||||
m_requests.clear();
|
m_requests.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user