diff --git a/src/session_impl.cpp b/src/session_impl.cpp index 7082a5792..5b348b26c 100755 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -1007,7 +1007,7 @@ namespace detail } // don't allow more connections than the max setting - if (m_connections.size() > max_connections()) + if (num_connections() > max_connections()) { #if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING) (*m_logger) << "number of connections limit exceeded (conns: "