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
1 changed files with 2 additions and 0 deletions

View File

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