Revision: 2609
          http://skim-app.svn.sourceforge.net/skim-app/?rev=2609&view=rev
Author:   hofman
Date:     2007-08-06 03:31:23 -0700 (Mon, 06 Aug 2007)

Log Message:
-----------
Wait the remaining time before doing an update check rather than the time we've 
already been waiting.

Modified Paths:
--------------
    trunk/vendorsrc/andymatuschak/Sparkle/SUUpdater.m

Modified: trunk/vendorsrc/andymatuschak/Sparkle/SUUpdater.m
===================================================================
--- trunk/vendorsrc/andymatuschak/Sparkle/SUUpdater.m   2007-08-06 09:35:34 UTC 
(rev 2608)
+++ trunk/vendorsrc/andymatuschak/Sparkle/SUUpdater.m   2007-08-06 10:31:23 UTC 
(rev 2609)
@@ -98,8 +98,8 @@
                if (intervalSinceCheck < interval)
                {
                        // Hasn't been long enough; schedule a check for the 
future.
-                       [self 
performSelector:@selector(checkForUpdatesInBackground) withObject:nil 
afterDelay:intervalSinceCheck];
-                       [self 
performSelector:@selector(scheduleCheckWithIntervalObject:) 
withObject:[NSNumber numberWithLong:interval] afterDelay:intervalSinceCheck];
+                       [self 
performSelector:@selector(checkForUpdatesInBackground) withObject:nil 
afterDelay:interval - intervalSinceCheck];
+                       [self 
performSelector:@selector(scheduleCheckWithIntervalObject:) 
withObject:[NSNumber numberWithLong:interval] afterDelay:interval - 
intervalSinceCheck];
                }
                else
                {


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to