forked from premiere/premiere-libtorrent
assert fixes
This commit is contained in:
parent
649f95c932
commit
46c286eea3
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue