fixed typo in previous dht checkin
This commit is contained in:
parent
f6f0402aa2
commit
a53cd86cae
|
@ -111,8 +111,8 @@ void closest_nodes::invoke(node_id const& id, udp::endpoint addr)
|
|||
void closest_nodes::done()
|
||||
{
|
||||
std::vector<node_entry> results;
|
||||
int num_results = m_table.bucket_size();
|
||||
for (std::vector<result>::iterator i = m_max_results
|
||||
int num_results = m_max_results;
|
||||
for (std::vector<result>::iterator i = m_results.begin()
|
||||
, end(m_results.end()); i != end && num_results >= 0; ++i)
|
||||
{
|
||||
if (i->flags & result::no_id) continue;
|
||||
|
|
Loading…
Reference in New Issue