mirror of
https://github.com/transmission/transmission
synced 2024-12-25 17:17:31 +00:00
swap a condition in the io code
This commit is contained in:
parent
c8ac8e312b
commit
78afc2f205
1 changed files with 1 additions and 1 deletions
|
@ -655,7 +655,7 @@ static int nextFreeSlotToAppend(tr_io_t * io)
|
||||||
tr_torrent_t * tor = io->tor;
|
tr_torrent_t * tor = io->tor;
|
||||||
tr_info_t * inf = &tor->info;
|
tr_info_t * inf = &tor->info;
|
||||||
|
|
||||||
while( io->pieceSlot[io->slotsUsed] >= 0 && io->slotsUsed < ( (inf->pieceCount)- 1 ) )
|
while( io->slotsUsed < ( (inf->pieceCount) - 1 ) && io->pieceSlot[io->slotsUsed] >= 0 )
|
||||||
{
|
{
|
||||||
tr_inf( "slotUsed (%d) has piece in %d !", io->slotsUsed, io->pieceSlot[io->slotsUsed] );
|
tr_inf( "slotUsed (%d) has piece in %d !", io->slotsUsed, io->pieceSlot[io->slotsUsed] );
|
||||||
(io->slotsUsed)++;
|
(io->slotsUsed)++;
|
||||||
|
|
Loading…
Reference in a new issue