forked from premiere/premiere-libtorrent
prevent new connections when shutting down
This commit is contained in:
parent
892a953a21
commit
195521db65
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue