From 7e85221109331709812de2148bdb4bd42d0fc098 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sun, 1 Oct 2006 16:34:02 +0000 Subject: [PATCH] start torrents by enumerating (trying to figure out a bug) --- macosx/Controller.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index 20960601a..5d75ef51c 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -655,7 +655,10 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy - (void) resumeTorrentsNoWait: (NSArray *) torrents { - [torrents makeObjectsPerformSelector: @selector(startTransfer)]; + NSEnumerator * enumerator = [torrents objectEnumerator]; + Torrent * torrent; + while ((torrent = [enumerator nextObject])) + [torrent startTransfer]; [self updateUI: nil]; [self applyFilter: nil];