queue position fix

This commit is contained in:
Arvid Norberg 2011-10-15 07:11:50 +00:00
parent ef1ee13d58
commit 14e7c9f480
1 changed files with 1 additions and 0 deletions

View File

@ -6326,6 +6326,7 @@ ctx->set_verify_callback(verify_function, ec);
{
torrent* t = i->second.get();
if (t->m_sequence_number > max_seq) max_seq = t->m_sequence_number;
if (t->m_sequence_number >= p) ++t->m_sequence_number;
}
m_sequence_number = (std::min)(max_seq + 1, p);
}