Slight change in the way queueing works when changing preferences.

This commit is contained in:
Mitchell Livingston 2006-08-01 23:22:48 +00:00
parent d5e6d5a1fd
commit 8bddde255c
1 changed files with 5 additions and 4 deletions

View File

@ -1382,15 +1382,16 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
enumerator = [sortedTorrents objectEnumerator];
while ((torrent = [enumerator nextObject]))
{
if ([torrent progress] >= 1.0)
[torrent startTransfer];
else
if ([torrent waitingToStart])
{
if ([torrent waitingToStart] && desiredActive > 0)
if ([torrent progress] >= 1.0)
[torrent startTransfer];
else if (desiredActive > 0)
{
[torrent startTransfer];
desiredActive--;
}
else;
}
[torrent update];