diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index 79f35480d..a7d09ec73 100755 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -374,7 +374,7 @@ namespace libtorrent { torrent::peer_iterator i = m_torrent->m_connections.find( get_socket()->sender()); - assert(i != m_torrent->m_connections.end()); + assert(i == m_torrent->m_connections.end()); } } #endif