Changeset 6403


Ignore:
Timestamp:
Jul 25, 2008, 7:55:09 PM (13 years ago)
Author:
charles
Message:

(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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/session.c

    r6389 r6403  
    593593                char filename[MAX_PATH_LENGTH];
    594594                tr_buildPath( filename, sizeof(filename), dirname, d->d_name, NULL );
    595                 if( tr_stringEndsWith( filename, ".torrent" ) )
    596                 {
    597                     tr_ctorSetMetainfoFromFile( ctor, filename );
    598                     tor = tr_torrentNew( h, ctor, NULL );
    599                     if( tor ) {
    600                         tr_list_append( &list, tor );
    601                         ++n;
    602                     }
     595
     596                tr_ctorSetMetainfoFromFile( ctor, filename );
     597                tor = tr_torrentNew( h, ctor, NULL );
     598                if( tor ) {
     599                    tr_list_append( &list, tor );
     600                    ++n;
    603601                }
    604602            }
Note: See TracChangeset for help on using the changeset viewer.