]> granicus.if.org Git - transmission/commitdiff
stop when we find the torrent
authorMitchell Livingston <livings124@transmissionbt.com>
Mon, 4 Mar 2013 04:14:11 +0000 (04:14 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Mon, 4 Mar 2013 04:14:11 +0000 (04:14 +0000)
macosx/Controller.m

index ba0b79029630a09899816878d0f2738f15f7f60f..8cf7d685d054986c8d5d42f8d4da1f7f8815e1fa 100644 (file)
@@ -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)