From 656ff6d5f2ed5ca839d25df770213d42b7c90657 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 19 Sep 2008 17:07:19 +0000 Subject: [PATCH] fixed piece_picker to not pick blocks from a piece with priority 0 when there already are requests to the piece --- src/piece_picker.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/piece_picker.cpp b/src/piece_picker.cpp index 1d534f258..35b97b4df 100644 --- a/src/piece_picker.cpp +++ b/src/piece_picker.cpp @@ -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);