forked from premiere/premiere-libtorrent
max connections limit fix
This commit is contained in:
parent
4f99230c74
commit
afa6fd97a3
|
@ -1085,7 +1085,7 @@ namespace detail
|
||||||
}
|
}
|
||||||
|
|
||||||
// don't allow more connections than the max setting
|
// don't allow more connections than the max setting
|
||||||
if (num_connections() > max_connections())
|
if (num_connections() >= max_connections())
|
||||||
{
|
{
|
||||||
#if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING)
|
#if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING)
|
||||||
(*m_logger) << "number of connections limit exceeded (conns: "
|
(*m_logger) << "number of connections limit exceeded (conns: "
|
||||||
|
|
Loading…
Reference in New Issue