fixed typo in previous dht checkin

This commit is contained in:
Arvid Norberg 2008-03-27 00:46:50 +00:00
parent f6f0402aa2
commit a53cd86cae
1 changed files with 2 additions and 2 deletions

View File

@ -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;