From 14e7c9f480a19dbf87160e15cb94fd0297c7decc Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 15 Oct 2011 07:11:50 +0000 Subject: [PATCH] queue position fix --- src/torrent.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/torrent.cpp b/src/torrent.cpp index d3c059cc6..6b6fa0323 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -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); }