fix to suggest pieces patch

This commit is contained in:
Arvid Norberg 2010-01-17 21:06:08 +00:00
parent 7ab1eb76d7
commit 018da0e29f
1 changed files with 2 additions and 1 deletions

View File

@ -343,9 +343,10 @@ namespace libtorrent
{
INVARIANT_CHECK;
if (!m_supports_fast) return;
TORRENT_ASSERT(m_sent_handshake && m_sent_bitfield);
TORRENT_ASSERT(associated_torrent().lock()->valid_metadata());
TORRENT_ASSERT(m_supports_fast);
boost::shared_ptr<torrent> t = associated_torrent().lock();
TORRENT_ASSERT(t);