(trunk libT) fix the resume files' "percent done" bug that was introduced yesterday with the magnet link commit
This commit is contained in:
parent
34db0dbe0d
commit
5e51618f83
|
@ -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 ) )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue