diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-21 03:38:48 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-21 03:40:08 -0800 |
commit | 7ffd70fdb391bcb9c354c0ddbe5c380f293b10bd (patch) | |
tree | e7cbeb6af7a72431c3202f442c5bf5b96f4b3f49 | |
parent | 3c41c9d562df8a4750db6973017807ffae120cc2 (diff) |
Retain the network activity indicator before the download starts.
-rw-r--r-- | MobileCydia.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 9dbce5e..67309b2 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -3673,13 +3673,13 @@ static NSString *Warning_; [before addObject:[NSString stringWithUTF8String:(*source)->GetURI().c_str()]]; } + [CydiaApp performSelectorOnMainThread:@selector(retainNetworkActivityIndicator) withObject:nil waitUntilDone:YES]; + if (fetcher_->Run(PulseInterval_) != pkgAcquire::Continue) { _trace(); return; } - [CydiaApp performSelectorOnMainThread:@selector(retainNetworkActivityIndicator) withObject:nil waitUntilDone:YES]; - bool failed = false; for (pkgAcquire::ItemIterator item = fetcher_->ItemsBegin(); item != fetcher_->ItemsEnd(); item++) { if ((*item)->Status == pkgAcquire::Item::StatDone && (*item)->Complete) |