From cae91090cc34ab3cc0f6854f32c9abde7a3236b7 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Tue, 9 Jan 2007 03:49:56 +0000 Subject: [PATCH] a little more queueing cleanup --- macosx/Controller.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index 2a64d2230..260839572 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -1164,7 +1164,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy while ((torrent = [enumerator nextObject])) if ([torrent isActive] && ![torrent isError]) { - if (![torrent isSeeding]) + if ([torrent progress] < 1.0) desiredDownloadActive--; else desiredSeedActive--; @@ -1248,7 +1248,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy NSEnumerator * enumerator = [fTorrents objectEnumerator]; Torrent * otherTorrent; while ((otherTorrent = [enumerator nextObject])) - if (otherTorrent != torrent && [otherTorrent isSeeding] && [otherTorrent isActive] && ![otherTorrent isError]) + if (otherTorrent != torrent && [otherTorrent isSeeding] && ![otherTorrent isError]) { desiredSeedActive--; if (desiredSeedActive <= 0)