fixed slightly incorrect unchoke condition
This commit is contained in:
parent
8cfc98b976
commit
daf7314476
|
@ -1060,8 +1060,8 @@ namespace libtorrent
|
|||
// can't pay for their downloads anyway.
|
||||
if (c.is_choked()
|
||||
&& m_num_unchoked < m_torrent->m_uploads_quota.given
|
||||
&& (m_torrent->ratio() == 0)
|
||||
|| (c.share_diff() >= -free_upload_amount
|
||||
&& (m_torrent->ratio() == 0
|
||||
|| c.share_diff() >= -free_upload_amount
|
||||
|| m_torrent->is_seed()))
|
||||
{
|
||||
c.send_unchoke();
|
||||
|
|
Loading…
Reference in New Issue