1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00

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

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)++;