(trunk libT) fix the resume files' "percent done" bug that was introduced yesterday with the magnet link commit

This commit is contained in:
Charles Kerr 2009-11-25 05:10:27 +00:00
parent 34db0dbe0d
commit 5e51618f83
1 changed files with 2 additions and 2 deletions

View File

@ -670,7 +670,9 @@ torrentInit( tr_torrent * tor, const tr_ctor * ctor )
tr_torrentSetAddedDate( tor, time( NULL ) ); /* this is a default value to be
overwritten by the resume file */
torrentInitFromInfo( tor );
loaded = tr_torrentLoadResume( tor, ~0, ctor );
tor->completeness = tr_cpGetStatus( &tor->completion );
refreshCurrentDir( tor );
@ -705,8 +707,6 @@ torrentInit( tr_torrent * tor, const tr_ctor * ctor )
++session->torrentCount;
}
torrentInitFromInfo( tor );
/* maybe save our own copy of the metainfo */
if( tr_ctorGetSave( ctor ) )
{