release asserts fix

This commit is contained in:
Arvid Norberg 2012-06-24 22:55:48 +00:00
parent 60f501ca5d
commit 24746bf54f
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ void traversal_algorithm::add_entry(node_id const& id, udp::endpoint addr, unsig
if (m_results.size() > 100) if (m_results.size() > 100)
{ {
#ifdef TORRENT_DEBUG #if defined TORRENT_DEBUG || TORRENT_RELEASE_ASSERTS
for (int i = 100; i < m_results.size(); ++i) for (int i = 100; i < m_results.size(); ++i)
m_results[i]->m_was_abandoned = true; m_results[i]->m_was_abandoned = true;
#endif #endif