For now the next to auto-start will be the earliest added transfer that is waiting

This commit is contained in:
Mitchell Livingston 2006-06-23 15:44:18 +00:00
parent 14cf4c87e6
commit b0204b34bd
1 changed files with 3 additions and 1 deletions

View File

@ -970,7 +970,9 @@ static void sleepCallBack(void * controller, io_service_t y,
}
else
{
if (!torrentToStart && [torrent waitingToStart])
//use as next if it is waiting to start and either no previous is or the previous has later date
if ([torrent waitingToStart] && (!torrentToStart
|| [[torrentToStart date] compare: [torrent date]] == NSOrderedDescending))
torrentToStart = torrent;
}
}