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

This commit is contained in:
Miguel Freitas 2014-07-22 14:49:12 -03:00
parent 8e81548ca0
commit 5b3fb45b81

View File

@ -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;