deadline-piece picking fix

This commit is contained in:
Arvid Norberg 2011-02-19 21:24:32 +00:00
parent 10a00fc62b
commit 261e2e2726
1 changed files with 4 additions and 1 deletions

View File

@ -6779,9 +6779,12 @@ namespace libtorrent
interesting_blocks.clear();
backup1.clear();
backup2.clear();
// specifically request blocks with no affinity towards fast or slow
// pieces. If we would, the picked block might end up in one of
// the backup lists
m_picker->add_blocks(i->piece, c.get_bitfield(), interesting_blocks
, backup1, backup2, 1, 0, c.peer_info_struct()
, ignore, piece_picker::fast, 0);
, ignore, piece_picker::none, 0);
std::vector<pending_block> const& rq = c.request_queue();