queue position fix
This commit is contained in:
parent
ef1ee13d58
commit
14e7c9f480
|
@ -6326,6 +6326,7 @@ ctx->set_verify_callback(verify_function, ec);
|
||||||
{
|
{
|
||||||
torrent* t = i->second.get();
|
torrent* t = i->second.get();
|
||||||
if (t->m_sequence_number > max_seq) max_seq = t->m_sequence_number;
|
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);
|
m_sequence_number = (std::min)(max_seq + 1, p);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue