fixed slightly incorrect unchoke condition

This commit is contained in:
Arvid Norberg 2005-09-28 18:07:00 +00:00
parent 8cfc98b976
commit daf7314476
1 changed files with 2 additions and 2 deletions

View File

@ -1060,8 +1060,8 @@ namespace libtorrent
// can't pay for their downloads anyway. // can't pay for their downloads anyway.
if (c.is_choked() if (c.is_choked()
&& m_num_unchoked < m_torrent->m_uploads_quota.given && m_num_unchoked < m_torrent->m_uploads_quota.given
&& (m_torrent->ratio() == 0) && (m_torrent->ratio() == 0
|| (c.share_diff() >= -free_upload_amount || c.share_diff() >= -free_upload_amount
|| m_torrent->is_seed())) || m_torrent->is_seed()))
{ {
c.send_unchoke(); c.send_unchoke();