From 8bddde255c8224f191de674740afe8b3f6b2aaf6 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Tue, 1 Aug 2006 23:22:48 +0000 Subject: [PATCH] Slight change in the way queueing works when changing preferences. --- macosx/Controller.m | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index 38c205e5e..f9351362d 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -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];