diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-19 15:55:59 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-19 17:01:04 -0800 |
commit | d3b96710c3ee5a845837b49864ddad6f2f8f6a8b (patch) | |
tree | 7d97b684c6314ac0574839660156b143faa71533 /MobileCydia.mm | |
parent | e6417cea87c2141237f9fcd67a596a9eb37a7c72 (diff) |
Use -[Cydia retain/releaseNetworkActivityIndicator] on main thread.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 367619d..70ef1b7 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(); |