1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-28 02:27:41 +00:00

(libT) ensure that .torrents and stats aren't lost when migrating to 1.30 from < 1.20. Thanks to Michael Dürwald for reporting this bug.

This commit is contained in:
Charles Kerr 2008-07-25 19:55:09 +00:00
parent 9c0646553a
commit d8c098f7a8

View file

@ -592,8 +592,7 @@ tr_sessionLoadTorrents ( tr_handle * h,
tr_torrent * tor; tr_torrent * tor;
char filename[MAX_PATH_LENGTH]; char filename[MAX_PATH_LENGTH];
tr_buildPath( filename, sizeof(filename), dirname, d->d_name, NULL ); tr_buildPath( filename, sizeof(filename), dirname, d->d_name, NULL );
if( tr_stringEndsWith( filename, ".torrent" ) )
{
tr_ctorSetMetainfoFromFile( ctor, filename ); tr_ctorSetMetainfoFromFile( ctor, filename );
tor = tr_torrentNew( h, ctor, NULL ); tor = tr_torrentNew( h, ctor, NULL );
if( tor ) { if( tor ) {
@ -602,7 +601,6 @@ tr_sessionLoadTorrents ( tr_handle * h,
} }
} }
} }
}
closedir( odir ); closedir( odir );
} }