swap a condition in the io code

This commit is contained in:
Mitchell Livingston 2007-05-28 16:51:18 +00:00
parent c8ac8e312b
commit 78afc2f205
1 changed files with 1 additions and 1 deletions

View File

@ -655,7 +655,7 @@ static int nextFreeSlotToAppend(tr_io_t * io)
tr_torrent_t * tor = io->tor;
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] );
(io->slotsUsed)++;