diff --git a/src/bt_peer_connection.cpp b/src/bt_peer_connection.cpp index 67bb182dd..2db6d2d29 100644 --- a/src/bt_peer_connection.cpp +++ b/src/bt_peer_connection.cpp @@ -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); diff --git a/src/policy.cpp b/src/policy.cpp index 5fea8160b..a5a4551c2 100644 --- a/src/policy.cpp +++ b/src/policy.cpp @@ -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()