forked from premiere/premiere-libtorrent
*** empty log message ***
This commit is contained in:
parent
3c884e72b4
commit
0afc6e6448
|
@ -424,7 +424,7 @@ namespace libtorrent
|
|||
{
|
||||
// make sure we have enough
|
||||
// unchoked peers
|
||||
while (m_num_unchoked < m_max_uploads)
|
||||
while (m_num_unchoked < m_max_uploads || m_max_uploads == -1)
|
||||
{
|
||||
peer* p = 0;
|
||||
for (std::vector<peer>::iterator i = m_peers.begin();
|
||||
|
@ -469,7 +469,7 @@ namespace libtorrent
|
|||
|
||||
// make sure we don't have too many
|
||||
// unchoked peers
|
||||
while (m_num_unchoked > m_max_uploads)
|
||||
while (m_num_unchoked > m_max_uploads && m_max_uploads != -1)
|
||||
{
|
||||
peer* p = find_choke_candidate();
|
||||
assert(p);
|
||||
|
@ -491,7 +491,7 @@ namespace libtorrent
|
|||
|
||||
// make sure we have enough
|
||||
// unchoked peers
|
||||
while (m_num_unchoked < m_max_uploads && unchoke_one_peer());
|
||||
while ((m_num_unchoked < m_max_uploads || m_max_uploads == -1) && unchoke_one_peer());
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
|
|
Loading…
Reference in New Issue