(trunk libT) #2656 "download speed limit of 0 is not honored" -- fixed in trunk for 1.90
This commit is contained in:
parent
743ef2a3c6
commit
8fc6e6a0f5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue