max connections limit fix

This commit is contained in:
Arvid Norberg 2008-01-18 01:29:28 +00:00
parent 4f99230c74
commit afa6fd97a3
1 changed files with 1 additions and 1 deletions

View File

@ -1085,7 +1085,7 @@ namespace detail
}
// 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)
(*m_logger) << "number of connections limit exceeded (conns: "