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:
Arvid Norberg 2008-09-19 17:07:19 +00:00
parent eb89269b6a
commit 656ff6d5f2
1 changed files with 1 additions and 0 deletions

View File

@ -1517,6 +1517,7 @@ namespace libtorrent
, end(m_downloads.end()); i != end; ++i)
{
if (!pieces[i->index]) continue;
if (piece_priority(i->index) == 0) continue;
int num_blocks_in_piece = blocks_in_piece(i->index);