From b5be6e86b6b7be04c1339d2fc32cf1748adf702b Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Mon, 4 Mar 2013 04:14:11 +0000 Subject: [PATCH] stop when we find the torrent --- macosx/Controller.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/macosx/Controller.m b/macosx/Controller.m index ba0b79029..8cf7d685d 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -4745,7 +4745,10 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy { [fTorrents enumerateObjectsWithOptions: NSEnumerationConcurrent usingBlock: ^(Torrent * checkTorrent, NSUInteger idx, BOOL *stop) { if (torrentStruct == [checkTorrent torrentStruct]) + { torrent = checkTorrent; + *stop = YES; + } }]; if (!torrent) -- 2.40.0