From a54270a11a7ea961c8dfef0ac0be45aa77981ce4 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 24 Jun 2010 17:49:20 +0000 Subject: [PATCH] (trunk libT) #3308 "Don't stop/restart torrents when setting the local data's location" -- fixed --- libtransmission/torrent.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index 94448f5d3..42a6ed546 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -2582,14 +2582,6 @@ setLocation( void * vdata ) /* bad idea to move files while they're being verified... */ tr_verifyRemove( tor ); - /* if the torrent is running, stop it and set a flag to - * restart after we're done */ - if( tor->isRunning ) - { - tr_torrentStop( tor ); - tor->startAfterVerify = TRUE; - } - /* try to move the files. * FIXME: there are still all kinds of nasty cases, like what * if the target directory runs out of space halfway through... */ @@ -2644,10 +2636,6 @@ setLocation( void * vdata ) tr_torrentSetDownloadDir( tor, location ); if( verify_needed ) tr_torrentVerify( tor ); - else if( tor->startAfterVerify ) { - tor->startAfterVerify = FALSE; - tr_torrentStart( tor ); - } } } -- 2.40.0