From 2da535c55655b3618ce9f51c1c4d2fe9c5e0a12f Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 30 Apr 2012 20:15:11 +0000 Subject: [PATCH] assert peers are not initialized twice --- src/peer_connection.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index 133ada424..ff6ae4407 100644 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -869,6 +869,7 @@ namespace libtorrent if (m_have_all) m_num_pieces = t->torrent_file().num_pieces(); #if defined TORRENT_DEBUG || TORRENT_RELEASE_ASSERTS + TORRENT_ASSERT(!m_initialized); m_initialized = true; #endif // now that we have a piece_picker,