remove invalid assert

This commit is contained in:
Arvid Norberg 2014-10-06 05:02:00 +00:00
parent f1032586f7
commit 0cd2e74f28
1 changed files with 1 additions and 2 deletions

View File

@ -11407,8 +11407,7 @@ namespace libtorrent
TORRENT_ASSERT(is_single_thread());
INVARIANT_CHECK;
TORRENT_ASSERT(m_connections.size() >= m_num_seeds + m_num_connecting);
return m_connections.size() - m_num_seeds - m_num_connecting;
return (std::max)(0, int(m_connections.size()) - m_num_seeds - m_num_connecting);
}
void torrent::tracker_request_error(tracker_request const& r