From b12138649275dae7ef7e8cd6f3b0f119ddb97fe7 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 21 Aug 2007 18:39:44 +0000 Subject: [PATCH] piece picker fix --- src/piece_picker.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/piece_picker.cpp b/src/piece_picker.cpp index 17efcac21..d326b43bb 100755 --- a/src/piece_picker.cpp +++ b/src/piece_picker.cpp @@ -1233,6 +1233,9 @@ namespace libtorrent // skip it if (!pieces[*i]) continue; + // skip the piece is the priority is 0 + if (m_piece_map[*i].priority(m_sequenced_download_threshold) == 0) continue; + int num_blocks_in_piece = blocks_in_piece(*i); if (m_piece_map[*i].downloading == 1)