fix build with release-asserts

This commit is contained in:
Arvid Norberg 2012-03-30 05:27:06 +00:00
parent 697fa4911b
commit 40db19ff7d
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ namespace libtorrent
void notify_extension_add_peer(tcp::endpoint const& ip, int src, int flags);
#endif
#ifdef TORRENT_DEBUG
#if defined TORRENT_DEBUG || TORRENT_RELEASE_ASSERTS
bool has_peer(peer_connection* p) const
{ return m_connections.find(p) != m_connections.end(); }
#endif