fixed piece_picker to not pick blocks from a piece with priority 0 when there already are requests to the piece
This commit is contained in:
parent
eb89269b6a
commit
656ff6d5f2
|
@ -1517,6 +1517,7 @@ namespace libtorrent
|
||||||
, end(m_downloads.end()); i != end; ++i)
|
, end(m_downloads.end()); i != end; ++i)
|
||||||
{
|
{
|
||||||
if (!pieces[i->index]) continue;
|
if (!pieces[i->index]) continue;
|
||||||
|
if (piece_priority(i->index) == 0) continue;
|
||||||
|
|
||||||
int num_blocks_in_piece = blocks_in_piece(i->index);
|
int num_blocks_in_piece = blocks_in_piece(i->index);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue