From 7ffd70fdb391bcb9c354c0ddbe5c380f293b10bd Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 21 Feb 2011 03:38:48 -0800 Subject: Retain the network activity indicator before the download starts. --- MobileCydia.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'MobileCydia.mm') 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) -- cgit v1.2.3