merged fix from libtorrent_aio
This commit is contained in:
@@ -821,8 +821,6 @@ void routing_table::find_node(node_id const& target
|
|||||||
for (; j != m_buckets.end() && int(l.size()) < count; ++j)
|
for (; j != m_buckets.end() && int(l.size()) < count; ++j)
|
||||||
{
|
{
|
||||||
bucket_t& b = j->live_nodes;
|
bucket_t& b = j->live_nodes;
|
||||||
size_t to_copy = (std::min)(count - l.size(), b.size());
|
|
||||||
|
|
||||||
if (options & include_failed)
|
if (options & include_failed)
|
||||||
{
|
{
|
||||||
copy(b.begin(), b.end()
|
copy(b.begin(), b.end()
|
||||||
|
Reference in New Issue
Block a user