Browse Source

disable assert since "there are ways for this to happen legitimately". should fix #176

miguelfreitas
Miguel Freitas 11 years ago
parent
commit
5b3fb45b81
  1. 2
      libtorrent/src/peer_connection.cpp

2
libtorrent/src/peer_connection.cpp

@ -3480,7 +3480,7 @@ namespace libtorrent
// closed, which is an edge case, but possible to happen when // closed, which is an edge case, but possible to happen when
// a peer makes a TCP and uTP connection in parallel. // a peer makes a TCP and uTP connection in parallel.
// for outgoing connections however, why would we get this? // for outgoing connections however, why would we get this?
TORRENT_ASSERT(ec != error::invalid_argument || !m_outgoing); //TORRENT_ASSERT(ec != error::invalid_argument || !m_outgoing);
#ifdef TORRENT_STATS #ifdef TORRENT_STATS
++m_ses.m_disconnected_peers; ++m_ses.m_disconnected_peers;

Loading…
Cancel
Save