minor dht fix

This commit is contained in:
Arvid Norberg 2008-03-28 22:56:33 +00:00
parent bed008b512
commit 40824d2bb1
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ void closest_nodes::done()
std::vector<node_entry> 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)
, end(m_results.end()); i != end && num_results > 0; ++i)
{
if (i->flags & result::no_id) continue;
if ((i->flags & result::queried) == 0) continue;