diff --git a/src/kademlia/routing_table.cpp b/src/kademlia/routing_table.cpp index 791c64481..54cd5c27e 100644 --- a/src/kademlia/routing_table.cpp +++ b/src/kademlia/routing_table.cpp @@ -629,6 +629,7 @@ void routing_table::find_node(node_id const& target copy_if_n(b.begin(), b.end(), std::back_inserter(l) , to_copy, bind(&node_entry::confirmed, _1)); } + ++j; } while (j != m_buckets.begin() && l.size() < count); }