fixed #82
This commit is contained in:
parent
430534bf3f
commit
329f73276f
|
@ -1066,9 +1066,9 @@ namespace libtorrent
|
||||||
|| m_piece_map[piece].priority(m_sequenced_download_threshold) < 2)
|
|| m_piece_map[piece].priority(m_sequenced_download_threshold) < 2)
|
||||||
{
|
{
|
||||||
++piece;
|
++piece;
|
||||||
|
if (piece == int(m_piece_map.size())) piece = 0;
|
||||||
// could not find any more pieces
|
// could not find any more pieces
|
||||||
if (piece == start_piece) return;
|
if (piece == start_piece) return;
|
||||||
if (piece == int(m_piece_map.size())) piece = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(m_piece_map[piece].downloading == false);
|
assert(m_piece_map[piece].downloading == false);
|
||||||
|
|
Loading…
Reference in New Issue