mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
#811: fix r5329 error in trunk.
This commit is contained in:
parent
910d77ae12
commit
b3663db916
1 changed files with 8 additions and 6 deletions
|
@ -1231,12 +1231,14 @@ setFileDND( tr_torrent * tor,
|
||||||
/* can't set the first piece to DND unless
|
/* can't set the first piece to DND unless
|
||||||
every file using that piece is DND */
|
every file using that piece is DND */
|
||||||
firstPieceDND = dnd;
|
firstPieceDND = dnd;
|
||||||
for( i=fileIndex-1; firstPieceDND; --i ) {
|
if( fileIndex > 0 ) {
|
||||||
if( tor->info.files[i].lastPiece != firstPiece )
|
for( i=fileIndex-1; firstPieceDND; --i ) {
|
||||||
break;
|
if( tor->info.files[i].lastPiece != firstPiece )
|
||||||
firstPieceDND = tor->info.files[i].dnd;
|
break;
|
||||||
if( !i )
|
firstPieceDND = tor->info.files[i].dnd;
|
||||||
break;
|
if( !i )
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* can't set the last piece to DND unless
|
/* can't set the last piece to DND unless
|
||||||
|
|
Loading…
Reference in a new issue