disable invariant check when TORRENT_DISABLE_INVARIANT_CHECKS is defined

This commit is contained in:
Arvid Norberg 2013-12-18 07:15:16 +00:00
parent adb3a5523c
commit d0d92a207e
1 changed files with 2 additions and 0 deletions

View File

@ -8668,7 +8668,9 @@ namespace libtorrent
if (!m_state_subscription) return;
if (m_in_state_updates)
{
#ifndef TORRENT_DISABLE_INVARIANT_CHECKS
TORRENT_ASSERT(m_ses.in_state_updates(shared_from_this()));
#endif
return;
}