assert peers are not initialized twice

This commit is contained in:
Arvid Norberg 2012-04-30 20:15:11 +00:00
parent cec9a16cc1
commit 2da535c556
1 changed files with 1 additions and 0 deletions

View File

@ -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,