From d0d92a207e66eed8895cb97955ec7c1da94a1932 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 18 Dec 2013 07:15:16 +0000 Subject: [PATCH] disable invariant check when TORRENT_DISABLE_INVARIANT_CHECKS is defined --- src/torrent.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/torrent.cpp b/src/torrent.cpp index 6fbf6b0e6..b0d149a73 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -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; }