forked from premiere/premiere-libtorrent
fixed msvc build
This commit is contained in:
parent
e5720eafd8
commit
087e4a3fdc
|
@ -4890,12 +4890,14 @@ namespace libtorrent
|
||||||
// this asserts that we don't have duplicates in the policy's peer list
|
// 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()
|
peer_iterator i_ = std::find_if(m_connections.begin(), m_connections.end()
|
||||||
, boost::bind(&peer_connection::remote, _1) == peerinfo->ip());
|
, boost::bind(&peer_connection::remote, _1) == peerinfo->ip());
|
||||||
|
#if TORRENT_USE_I2P
|
||||||
TORRENT_ASSERT(i_ == m_connections.end()
|
TORRENT_ASSERT(i_ == m_connections.end()
|
||||||
|| (*i_)->type() != peer_connection::bittorrent_connection
|
|| (*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
|
||||||
);
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue