Changeset 10327


Ignore:
Timestamp:
Mar 7, 2010, 7:14:33 PM (12 years ago)
Author:
charles
Message:

(1.9x libT) r10325 #1242 "don't accept duplicate blocks during endgame" -- backported to 1.9x branch for 1.92

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.9x/libtransmission/peer-msgs.c

    r10302 r10327  
    16041604    }
    16051605
    1606     /* save the block */
    16071606    dbgmsg( msgs, "got block %u:%u->%u", req->index, req->offset, req->length );
    16081607
     
    16111610        return 0;
    16121611    }
     1612    if( tr_cpPieceIsComplete( &msgs->torrent->completion, req->index ) ) {
     1613        dbgmsg( msgs, "we did ask for this message, but the piece is already complete..." );
     1614        return 0;
     1615    }
    16131616
    16141617    /**
Note: See TracChangeset for help on using the changeset viewer.