diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index 9a1ff4e22..221e3403d 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -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 ) ) {