From d36298f2cf604a51ffb60707e467c682d9b521c6 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Tue, 21 Aug 2007 08:30:37 +0000 Subject: [PATCH] fix lt bug #136 --- libtorrent/src/peer_connection.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libtorrent/src/peer_connection.cpp b/libtorrent/src/peer_connection.cpp index 09fe0da85..4ee8b93e7 100755 --- a/libtorrent/src/peer_connection.cpp +++ b/libtorrent/src/peer_connection.cpp @@ -1480,6 +1480,7 @@ namespace libtorrent assert(!m_have_piece.empty()); std::fill(m_have_piece.begin(), m_have_piece.end(), true); + m_num_pieces = m_have_piece.size(); t->peer_has_all(); if (!t->is_finished())