Fixing #37 by making even apps with scheduled checks check the first time they launch.

This commit is contained in:
andym committed 2007-12-04 06:36:48 +00:00
1 parent 8fbfa3a46f
commit fe44611e2b
1 file changed
+1 -1
+1 -1
View File
@@ -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)
{