promoted an expensive invariant check to only be built with full invariant checks

This commit is contained in:
Arvid Norberg
2009-05-22 03:26:24 +00:00
parent 9507052797
commit 065c33969a

View File

@@ -830,7 +830,9 @@ namespace libtorrent
void piece_picker::dec_refcount_all()
{
#ifdef TORRENT_EXPENSIVE_INVARIANT_CHECKS
TORRENT_PIECE_PICKER_INVARIANT_CHECK;
#endif
if (m_seeds > 0)
{