Changeset 79


Ignore:
Timestamp:
Feb 1, 2006, 2:05:48 PM (15 years ago)
Author:
titer
Message:

Workarounded a race condition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peermessages.h

    r54 r79  
    5252        tr_request_t * r;
    5353
    54         if( peer->outRequestCount < 1 )
     54        if( peer->amChoking || peer->outRequestCount < 1 )
    5555        {
    5656            /* No piece to send */
     
    167167    peer->amChoking = yes;
    168168
    169     if( yes )
    170     {
    171         /* Drop all pending requests */
     169    if( !yes )
     170    {
     171        /* Drop older requests from the last time it was unchoked,
     172           if any */
    172173        peer->outRequestCount = 0;
    173174    }
Note: See TracChangeset for help on using the changeset viewer.