(trunk libT) #1760: test fix for a deadlock that occurs stopping a file that's being verified
This commit is contained in:
parent
f04505c0f2
commit
e7c2fe4b46
|
@ -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 );
|
||||
}
|
||||
|
||||
/***
|
||||
|
|
Loading…
Reference in New Issue