From fe44611e2b06ca419f61780ebb0ef96ed28b2d16 Mon Sep 17 00:00:00 2001 From: andym Date: Tue, 4 Dec 2007 06:36:48 +0000 Subject: [PATCH] Fixing #37 by making even apps with scheduled checks check the first time they launch. --- SUUpdater.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SUUpdater.m b/SUUpdater.m index 69684b17..bdfa26f9 100644 --- a/SUUpdater.m +++ b/SUUpdater.m @@ -110,7 +110,7 @@ { NSTimeInterval interval = [self storedCheckInterval]; NSDate *lastCheck = [[utilities standardBundleDefaults] objectForKey:SULastCheckTimeKey]; - if (!lastCheck) { lastCheck = [NSDate date]; } + if (!lastCheck) { lastCheck = [NSDate distantPast]; } NSTimeInterval intervalSinceCheck = [[NSDate date] timeIntervalSinceDate:lastCheck]; if (intervalSinceCheck < interval) {