From 26c79a5d43d91867f5c5f8c57fce6dcecaeb2682 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Tue, 9 Jan 2007 01:53:43 +0000 Subject: [PATCH] save some calls --- macosx/Controller.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index 7a42f1263..abb37f836 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -1589,7 +1589,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy NSEnumerator * enumerator = [fTorrents objectEnumerator]; Torrent * torrent; while ((torrent = [enumerator nextObject])) - if ([torrent waitingToStart]) + if (![torrent isActive] && [torrent waitingToStart]) [torrent startTransfer]; [self updateUI: nil];