(trunk libT) in tr_torrentStar(), there's no need to reload the progress after #2317's changes in r8878

This commit is contained in:
Charles Kerr 2009-08-12 03:56:53 +00:00
parent 6138abe38f
commit c88dd2de12
1 changed files with 4 additions and 9 deletions

View File

@ -509,8 +509,7 @@ randomizeTiers( tr_info * info )
tr_free( r );
}
static void torrentStart( tr_torrent * tor,
int reloadProgress );
static void torrentStart( tr_torrent * tor );
/**
* Decide on a block size. constraints:
@ -677,7 +676,7 @@ torrentRealInit( tr_torrent * tor, const tr_ctor * ctor )
tr_metainfoMigrate( session, &tor->info );
if( doStart )
torrentStart( tor, FALSE );
torrentStart( tor );
}
tr_parse_result
@ -1278,7 +1277,7 @@ checkAndStartCB( tr_torrent * tor )
}
static void
torrentStart( tr_torrent * tor, int reloadProgress )
torrentStart( tr_torrent * tor )
{
assert( tr_isTorrent( tor ) );
@ -1287,10 +1286,6 @@ torrentStart( tr_torrent * tor, int reloadProgress )
if( !tor->isRunning )
{
tr_verifyRemove( tor );
if( reloadProgress )
tr_torrentLoadResume( tor, TR_FR_PROGRESS, NULL );
tor->isRunning = 1;
tr_verifyAdd( tor, checkAndStartCB );
}
@ -1302,7 +1297,7 @@ void
tr_torrentStart( tr_torrent * tor )
{
if( tr_isTorrent( tor ) )
torrentStart( tor, TRUE );
torrentStart( tor );
}
static void