Changeset 10015


Ignore:
Timestamp:
Jan 25, 2010, 4:54:04 AM (12 years ago)
Author:
charles
Message:

(trunk libT) #2792 "Since 1.80 update downloads failing" -- fixed in trunk for 1.83

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr.c

    r9973 r10015  
    11411141
    11421142            /* send cancel messages for all the "cancel" ones */
    1143             for( it=cancel, end=it+cancelCount; it!=end; ++it )
    1144                 if( ( it->peer != NULL ) && ( it->peer->msgs != NULL ) )
     1143            for( it=cancel, end=it+cancelCount; it!=end; ++it ) {
     1144                if( ( it->peer != NULL ) && ( it->peer->msgs != NULL ) ) {
    11451145                    tr_peerMsgsCancel( it->peer->msgs, it->block );
     1146                    if( t->requestCount > 0 )
     1147                        --t->requestCount;
     1148                }
     1149            }
    11461150
    11471151            /* decrement the pending request counts for the timed-out blocks */
Note: See TracChangeset for help on using the changeset viewer.