From 59af8ae0bae30207682f445609e66f71825f55d7 Mon Sep 17 00:00:00 2001 From: Zorg Date: Sat, 16 Jul 2016 17:21:57 -0400 Subject: [PATCH] Remove old reachability related code/comments --- Sparkle/SUUpdater.m | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/Sparkle/SUUpdater.m b/Sparkle/SUUpdater.m index 6dc6d571..f614acad 100644 --- a/Sparkle/SUUpdater.m +++ b/Sparkle/SUUpdater.m @@ -365,19 +365,10 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification return; } - // Background update checks should only happen if we have a network connection. - // Wouldn't want to annoy users on dial-up by establishing a connection every - // hour or so: - - // We don't want the reachability check to act on the driver if the updater is going near death + // We don't want the probe check to act on the driver if the updater is going near death __weak SUUpdater *weakSelf = self; - SUHost *theHost = weakSelf.host; - if (theHost == nil) { - return; - } - - [SUProbeInstallStatus probeInstallerInProgressForHost:theHost completion:^(BOOL installerIsRunning) { + [SUProbeInstallStatus probeInstallerInProgressForHost:self.host completion:^(BOOL installerIsRunning) { dispatch_async(dispatch_get_main_queue(), ^{ SUUpdater *strongSelf = weakSelf; if (strongSelf == nil) { @@ -388,14 +379,14 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification if (!installerIsRunning && [strongSelf automaticallyDownloadsUpdates] && [strongSelf allowsAutomaticUpdates]) { updateDriver = [[SUAutomaticUpdateDriver alloc] - initWithHost:theHost + initWithHost:strongSelf.host sparkleBundle:strongSelf.sparkleBundle updater:strongSelf updaterDelegate:strongSelf.delegate]; } else { updateDriver = [[SUScheduledUpdateDriver alloc] - initWithHost:theHost + initWithHost:strongSelf.host sparkleBundle:strongSelf.sparkleBundle updater:strongSelf userDriver:strongSelf.userDriver