(trunk libT) #1760: test fix for a deadlock that occurs stopping a file that's being verified

This commit is contained in:
Charles Kerr 2009-02-05 19:57:50 +00:00
parent f04505c0f2
commit e7c2fe4b46
1 changed files with 0 additions and 4 deletions

View File

@ -1000,14 +1000,10 @@ tr_torrentSetHasPiece( tr_torrent * tor,
assert( tr_isTorrent( tor ) );
assert( pieceIndex < tor->info.pieceCount );
tr_torrentLock( tor );
if( has )
tr_cpPieceAdd( &tor->completion, pieceIndex );
else
tr_cpPieceRem( &tor->completion, pieceIndex );
tr_torrentUnlock( tor );
}
/***