(trunk libT) #3308 "Don't stop/restart torrents when setting the local data's location" -- fixed

This commit is contained in:
Charles Kerr 2010-06-24 17:49:20 +00:00
parent bcb53a8937
commit a54270a11a
1 changed files with 0 additions and 12 deletions

View File

@ -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 );
}
}
}