Changeset 2321


Ignore:
Timestamp:
Jul 10, 2007, 3:49:10 AM (15 years ago)
Author:
charles
Message:

more fastresume fixin'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/fastresume.c

    r2320 r2321  
    259259
    260260    /* set the dnd flags */
    261     for( i=0; i<n; ++i )
    262         tor->info.files[i].dnd = *walk++ == 't';
     261    for( i=0; i<n; ++i ) {
     262        int j;
     263        const char ch = *walk++;
     264        tr_file_t * file = &tor->info.files[i];
     265        file->dnd = ch == 't';
     266        for( j=file->firstPiece; j<=file->lastPiece; ++j )
     267            tor->info.pieces[j].dnd = file->dnd;
     268    }
    263269
    264270    free( buf );
Note: See TracChangeset for help on using the changeset viewer.