]> git.saurik.com Git - cydia.git/commitdiff
Use -[Cydia retain/releaseNetworkActivityIndicator] on main thread.
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 19 Feb 2011 23:55:59 +0000 (15:55 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 20 Feb 2011 01:01:04 +0000 (17:01 -0800)
MobileCydia.mm

index 367619d45e7fdf743968b6c0a83a9ae836e680ea..70ef1b75dabf1b3cc071836dbae9f4211ca29156 100644 (file)
@@ -3698,7 +3698,7 @@ static NSString *Warning_;
         return;
     }
 
-    [CydiaApp retainNetworkActivityIndicator];
+    [(id)CydiaApp performSelectorOnMainThread:@selector(retainNetworkActivityIndicator) withObject:nil waitUntilDone:YES];
 
     bool failed = false;
     for (pkgAcquire::ItemIterator item = fetcher_->ItemsBegin(); item != fetcher_->ItemsEnd(); item++) {
@@ -3721,7 +3721,7 @@ static NSString *Warning_;
         ];
     }
 
-    [CydiaApp releaseNetworkActivityIndicator];
+    [(id)CydiaApp performSelectorOnMainThread:@selector(releaseNetworkActivityIndicator) withObject:nil waitUntilDone:YES];
 
     if (failed) {
         _trace();