fix to previous connection queue change
This commit is contained in:
parent
54805ca60b
commit
77c141fd6d
|
@ -724,12 +724,8 @@ namespace libtorrent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
while (m_torrent->num_peers() < m_torrent->m_connections_quota.given)
|
if (m_torrent->want_more_peers())
|
||||||
{
|
connect_one_peer();
|
||||||
if (!connect_one_peer())
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ------------------------
|
// ------------------------
|
||||||
// upload shift
|
// upload shift
|
||||||
|
@ -1201,8 +1197,7 @@ namespace libtorrent
|
||||||
{
|
{
|
||||||
INVARIANT_CHECK;
|
INVARIANT_CHECK;
|
||||||
|
|
||||||
if (!m_torrent->want_more_peers())
|
assert(m_torrent->want_more_peers());
|
||||||
return false;
|
|
||||||
|
|
||||||
bool succeed = false;
|
bool succeed = false;
|
||||||
while (!succeed)
|
while (!succeed)
|
||||||
|
|
Loading…
Reference in New Issue