assert fixes
This commit is contained in:
@@ -3010,8 +3010,6 @@ namespace libtorrent
|
||||
|
||||
TORRENT_ASSERT(!m_rc4_encrypted || m_RC4_handler.get());
|
||||
#endif
|
||||
if (is_seed() && m_initialized) TORRENT_ASSERT(upload_only());
|
||||
|
||||
if (!in_handshake())
|
||||
{
|
||||
TORRENT_ASSERT(m_sent_handshake);
|
||||
|
@@ -1229,6 +1229,9 @@ namespace libtorrent
|
||||
{
|
||||
INVARIANT_CHECK;
|
||||
|
||||
// no peer should be interesting if we're finished
|
||||
TORRENT_ASSERT(!m_torrent->is_finished());
|
||||
|
||||
if (c.in_handshake()) return;
|
||||
c.send_interested();
|
||||
if (c.has_peer_choked()
|
||||
|
Reference in New Issue
Block a user