Changeset 2960


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

(encryption) better fix for previous commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/encryption/libtransmission/inout.c

    r2959 r2960  
    302302tr_ioHash( tr_io_t * io, int pieceIndex )
    303303{
     304    int ret;
    304305    tr_torrent * tor = io->tor;
    305306    const int success = !checkPiece( tor, pieceIndex );
     307
    306308    if( success )
    307309    {
    308310        tr_dbg( "Piece %d hash OK", pieceIndex );
    309311        tr_cpPieceAdd( tor->completion, pieceIndex );
     312        ret = TR_OK;
    310313    }
    311314    else
     
    313316        tr_err( "Piece %d hash FAILED", pieceIndex );
    314317        tr_cpPieceRem( tor->completion, pieceIndex );
    315         return TR_ERROR;
     318        ret = TR_ERROR;
    316319    }
    317320
    318321    tr_peerMgrSetBlame( tor->handle->peerMgr, tor->info.hash, pieceIndex, success );
    319322
    320     return 0;
    321 }
     323    return ret;
     324}
Note: See TracChangeset for help on using the changeset viewer.