Changeset 7683


Ignore:
Timestamp:
Jan 12, 2009, 6:02:28 PM (12 years ago)
Author:
charles
Message:

(trunk libT) #1592: file priorities are not preserved after exiting & starting a new session

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/resume.c

    r7658 r7683  
    229229      && ( tr_bencListSize( list ) == n ) )
    230230    {
    231         int64_t         tmp;
     231        int64_t priority;
    232232        tr_file_index_t i;
    233233        for( i = 0; i < n; ++i )
    234             if( tr_bencGetInt( tr_bencListChild( list, i ), &tmp ) )
    235                 inf->files[i].priority = tmp;
     234            if( tr_bencGetInt( tr_bencListChild( list, i ), &priority ) )
     235                tr_torrentInitFilePriority( tor, i, priority );
    236236        ret = TR_FR_PRIORITY;
    237237    }
Note: See TracChangeset for help on using the changeset viewer.