remove invalid assert
This commit is contained in:
parent
f1032586f7
commit
0cd2e74f28
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue