disable invariant_check functions when invariant checks are disabled
This commit is contained in:
@@ -169,8 +169,7 @@ namespace libtorrent
|
||||
int connection_queue::limit() const
|
||||
{ return m_half_open_limit; }
|
||||
|
||||
#ifdef TORRENT_DEBUG
|
||||
|
||||
#if defined TORRENT_DEBUG && !defined TORRENT_DISABLE_INVARIANT_CHECKS
|
||||
void connection_queue::check_invariant() const
|
||||
{
|
||||
int num_connecting = 0;
|
||||
|
Reference in New Issue
Block a user