1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-04 05:22:40 +00:00

(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

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