(trunk libt) #2955 "lazy torrent verification" -- don't force a reverify after moving a torrent's contents to a new direction

This commit is contained in:
Charles Kerr 2010-12-13 20:01:38 +00:00
parent 79d4967ee6
commit a31e23f094
1 changed files with 0 additions and 7 deletions

View File

@ -2751,7 +2751,6 @@ static void
setLocation( void * vdata )
{
tr_bool err = FALSE;
tr_bool verify_needed = FALSE;
struct LocationData * data = vdata;
tr_torrent * tor = data->tor;
const tr_bool do_move = data->move_from_old_location;
@ -2798,10 +2797,6 @@ setLocation( void * vdata )
tr_torerr( tor, "error moving \"%s\" to \"%s\": %s",
oldpath, newpath, tr_strerror( errno ) );
}
else if( !renamed )
{
verify_needed = TRUE;
}
}
tr_free( newpath );
@ -2824,8 +2819,6 @@ setLocation( void * vdata )
/* set the new location and reverify */
tr_torrentSetDownloadDir( tor, location );
if( verify_needed )
tr_torrentVerify( tor );
}
}