fixed piece picker problem when a downloading piece could not be picked with the right speed category

This commit is contained in:
Arvid Norberg
2007-09-10 08:07:18 +00:00
parent 0db64cba2c
commit 80aee32972
6 changed files with 30 additions and 9 deletions

View File

@@ -284,6 +284,8 @@ namespace libtorrent
for (std::vector<piece_block>::iterator i = interesting_pieces.begin();
i != interesting_pieces.end(); ++i)
{
if (prefer_whole_pieces == 0 && num_requests <= 0) break;
if (p.is_requested(*i))
{
if (num_requests <= 0) break;