From 087e4a3fdc91bd66de67914ad85de590012d2941 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 9 Apr 2011 21:04:02 +0000 Subject: [PATCH] fixed msvc build --- src/torrent.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/torrent.cpp b/src/torrent.cpp index 7917a1530..b100ccd31 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -4890,12 +4890,14 @@ namespace libtorrent // this asserts that we don't have duplicates in the policy's peer list peer_iterator i_ = std::find_if(m_connections.begin(), m_connections.end() , boost::bind(&peer_connection::remote, _1) == peerinfo->ip()); +#if TORRENT_USE_I2P TORRENT_ASSERT(i_ == m_connections.end() || (*i_)->type() != peer_connection::bittorrent_connection -#if TORRENT_USE_I2P - || peerinfo->is_i2p_addr + || peerinfo->is_i2p_addr); +#else + TORRENT_ASSERT(i_ == m_connections.end() + || (*i_)->type() != peer_connection::bittorrent_connection); #endif - ); } #endif