Move invoking showCanCheckForUpdates: outside of this completion

This commit is contained in:
Zorg committed 2016-04-09 12:35:23 -04:00
1 parent 1bb301e82a
commit c80015bf99
1 file changed
+1 -1
+1 -1
View File
@@ -416,10 +416,10 @@ static void SUCheckForUpdatesInBgReachabilityCheck(__weak SUUpdater *updater, id
}
};
[self.userDriver showCanCheckForUpdates:NO];
[SUProbeInstallStatus probeInstallerInProgressForHost:self.host completion:^(BOOL success) {
dispatch_async(dispatch_get_main_queue(), ^{
SUUpdater *strongSelf = weakSelf;
[strongSelf.userDriver showCanCheckForUpdates:NO];
if (strongSelf != nil) {
if (!success) {
[strongSelf.driver checkForUpdatesAtAppcastURL:theFeedURL withUserAgent:[strongSelf userAgentString] httpHeaders:[strongSelf httpHeaders] completion:completionBlock];