diff --git a/src/session_impl.cpp b/src/session_impl.cpp index 0ca598872..885ff8e63 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -1143,7 +1143,8 @@ namespace aux { int free_slots = m_half_open.free_slots(); if (!m_torrents.empty() && free_slots > -m_half_open.limit() - && num_connections() < m_max_connections) + && num_connections() < m_max_connections + && !m_abort) { // this is the maximum number of connections we will // attempt this tick