(trunk libT) #2656 "download speed limit of 0 is not honored" -- fixed in trunk for 1.90

This commit is contained in:
Charles Kerr 2010-01-30 00:43:31 +00:00
parent 743ef2a3c6
commit 8fc6e6a0f5
1 changed files with 3 additions and 2 deletions

View File

@ -1776,8 +1776,9 @@ updateMetadataRequests( tr_peermsgs * msgs, time_t now )
static void
updateBlockRequests( tr_peermsgs * msgs )
{
if( ( msgs->desiredRequestCount > 0 ) &&
( msgs->peer->pendingReqsToPeer <= ( msgs->desiredRequestCount * 0.66 ) ) )
if( tr_torrentIsPieceTransferAllowed( msgs->torrent, TR_PEER_TO_CLIENT )
&& ( msgs->desiredRequestCount > 0 )
&& ( msgs->peer->pendingReqsToPeer <= ( msgs->desiredRequestCount * 0.66 ) ) )
{
int i;
int n;