From e7c2fe4b462cf83440f6d88aa1a8bcb418edbb1b Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 5 Feb 2009 19:57:50 +0000 Subject: [PATCH] (trunk libT) #1760: test fix for a deadlock that occurs stopping a file that's being verified --- libtransmission/torrent.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index 7770b040b..0c21dbc2b 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -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 ); } /***