disabled an expensive assert when TORRENT_EXPENSIVE_INVARIANT_CHECKS is not defined

This commit is contained in:
Arvid Norberg 2008-11-01 19:44:39 +00:00
parent 17c250349e
commit e0bea061b5
1 changed files with 1 additions and 1 deletions

View File

@ -2520,7 +2520,7 @@ namespace libtorrent
m_torrent.reset();
}
#ifndef NDEBUG
#if !defined NDEBUG && defined TORRENT_EXPENSIVE_INVARIANT_CHECKS
// since this connection doesn't have a torrent reference
// no torrent should have a reference to this connection either
for (aux::session_impl::torrent_map::const_iterator i = m_ses.m_torrents.begin()