From d3b96710c3ee5a845837b49864ddad6f2f8f6a8b Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 19 Feb 2011 15:55:59 -0800 Subject: [PATCH] Use -[Cydia retain/releaseNetworkActivityIndicator] on main thread. --- MobileCydia.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index 367619d4..70ef1b75 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -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(); -- 2.45.2