fix problem introduced with new piece picker

This commit is contained in:
Arvid Norberg 2008-02-05 05:57:32 +00:00
parent 1c82ef36d8
commit 5d4d08b7ce
1 changed files with 1 additions and 0 deletions

View File

@ -347,6 +347,7 @@ namespace libtorrent
TORRENT_ASSERT(t->ready_for_connections());
m_have_piece.resize(t->torrent_file().num_pieces(), m_have_all);
if (m_have_all) m_num_pieces = t->torrent_file().num_pieces();
// now that we have a piece_picker,
// update it with this peer's pieces