]> git.saurik.com Git - cydia.git/commitdiff
We are failing to _loaded if Cydia !IsReachable().
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 20 Jan 2012 07:33:58 +0000 (23:33 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 20 Jan 2012 08:26:30 +0000 (00:26 -0800)
MobileCydia.mm

index 1870b772a0e55d4a666486d227c59aee5e25850e..ba7b9ab6aba1a1692aeb745c21dd5c368d4f5adc 100644 (file)
@@ -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];