fix problem introduced with new piece picker
This commit is contained in:
parent
1c82ef36d8
commit
5d4d08b7ce
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue