From 5d4d08b7ce20d61473dbb5253562f4fffccfb5c0 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 5 Feb 2008 05:57:32 +0000 Subject: [PATCH] fix problem introduced with new piece picker --- src/peer_connection.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index 569b9e2a0..c9df1ba0c 100755 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -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