diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2012-01-19 23:33:58 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2012-01-20 00:26:30 -0800 |
commit | 8d3505c59edf839ccf7b79687181299e2011c663 (patch) | |
tree | 8d048753ff17dff9c41ec7e82d05bd9bb8ac6c2b /MobileCydia.mm | |
parent | 1dc38e9c3a4bacab79baf18a418e19bee6d4026c (diff) |
We are failing to _loaded if Cydia !IsReachable().
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 1870b77..ba7b9ab 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -9452,7 +9452,8 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi // - We already refreshed recently. // - We already auto-refreshed this launch. // - Auto-refresh is disabled. - if (recently || loaded_ || ManualRefresh) { + // - Cydia's server is not reachable + if (recently || loaded_ || ManualRefresh || !IsReachable("cydia.saurik.com")) { // If we are cancelling, we need to make sure it knows it's already loaded. loaded_ = true; @@ -9461,9 +9462,7 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi // We are going to load, so remember that. loaded_ = true; - // If we can reach the server, auto-refresh! - if (IsReachable("cydia.saurik.com")) - [tabbar_ performSelectorOnMainThread:@selector(setUpdate:) withObject:update waitUntilDone:NO]; + [tabbar_ performSelectorOnMainThread:@selector(setUpdate:) withObject:update waitUntilDone:NO]; } [pool release]; |