Changeset 2961


Ignore:
Timestamp:
Sep 1, 2007, 2:56:22 AM (15 years ago)
Author:
charles
Message:

(0.8x) better fix for previous commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.8x/libtransmission/inout.c

    r2958 r2961  
    302302{
    303303    int i;
    304 
     304    int ret;
    305305    tr_torrent_t * tor = io->tor;
    306306    const int success = !checkPiece( tor, pieceIndex );
     307
    307308    if( success )
    308309    {
    309         tr_inf( "Piece %d hash OK", pieceIndex );
     310        tr_dbg( "Piece %d hash OK", pieceIndex );
    310311        tr_cpPieceAdd( tor->completion, pieceIndex );
     312        ret = TR_OK;
    311313    }
    312314    else
     
    314316        tr_err( "Piece %d hash FAILED", pieceIndex );
    315317        tr_cpPieceRem( tor->completion, pieceIndex );
    316         return TR_ERROR;
     318        ret = TR_ERROR;
    317319    }
    318320
    319321    /* Assign blame or credit to peers */
    320     for( i = 0; i < tor->peerCount; ++i )
     322    for( i=0; i<tor->peerCount; ++i )
    321323        tr_peerBlame( tor->peers[i], pieceIndex, success );
    322324
    323     return 0;
    324 }
     325    return ret;
     326}
Note: See TracChangeset for help on using the changeset viewer.