more fastresume fixin'
This commit is contained in:
parent
e45df69b9a
commit
043ba9e1bf
|
@ -258,8 +258,14 @@ fastResumeLoadPriorities( tr_torrent_t * tor,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* set the dnd flags */
|
/* set the dnd flags */
|
||||||
for( i=0; i<n; ++i )
|
for( i=0; i<n; ++i ) {
|
||||||
tor->info.files[i].dnd = *walk++ == 't';
|
int j;
|
||||||
|
const char ch = *walk++;
|
||||||
|
tr_file_t * file = &tor->info.files[i];
|
||||||
|
file->dnd = ch == 't';
|
||||||
|
for( j=file->firstPiece; j<=file->lastPiece; ++j )
|
||||||
|
tor->info.pieces[j].dnd = file->dnd;
|
||||||
|
}
|
||||||
|
|
||||||
free( buf );
|
free( buf );
|
||||||
return TR_OK;
|
return TR_OK;
|
||||||
|
|
Loading…
Reference in New Issue