Changeset 2960
- Timestamp:
- Sep 1, 2007, 2:52:40 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/encryption/libtransmission/inout.c
r2959 r2960 302 302 tr_ioHash( tr_io_t * io, int pieceIndex ) 303 303 { 304 int ret; 304 305 tr_torrent * tor = io->tor; 305 306 const int success = !checkPiece( tor, pieceIndex ); 307 306 308 if( success ) 307 309 { 308 310 tr_dbg( "Piece %d hash OK", pieceIndex ); 309 311 tr_cpPieceAdd( tor->completion, pieceIndex ); 312 ret = TR_OK; 310 313 } 311 314 else … … 313 316 tr_err( "Piece %d hash FAILED", pieceIndex ); 314 317 tr_cpPieceRem( tor->completion, pieceIndex ); 315 ret urnTR_ERROR;318 ret = TR_ERROR; 316 319 } 317 320 318 321 tr_peerMgrSetBlame( tor->handle->peerMgr, tor->info.hash, pieceIndex, success ); 319 322 320 return 0;321 } 323 return ret; 324 }
Note: See TracChangeset
for help on using the changeset viewer.