minor dht fix
This commit is contained in:
parent
bed008b512
commit
40824d2bb1
|
@ -113,7 +113,7 @@ void closest_nodes::done()
|
||||||
std::vector<node_entry> results;
|
std::vector<node_entry> results;
|
||||||
int num_results = m_max_results;
|
int num_results = m_max_results;
|
||||||
for (std::vector<result>::iterator i = m_results.begin()
|
for (std::vector<result>::iterator i = m_results.begin()
|
||||||
, end(m_results.end()); i != end && num_results >= 0; ++i)
|
, end(m_results.end()); i != end && num_results > 0; ++i)
|
||||||
{
|
{
|
||||||
if (i->flags & result::no_id) continue;
|
if (i->flags & result::no_id) continue;
|
||||||
if ((i->flags & result::queried) == 0) continue;
|
if ((i->flags & result::queried) == 0) continue;
|
||||||
|
|
Loading…
Reference in New Issue