Ticket #173 (new enhancement)

Opened 2 months ago

Check automatically (and reset scheduled timer) if the machine wakes from a long sleep

Reported by: Jonathan Grynspan Assigned to:
Priority: minor Milestone:
Component: Framework Version: 1.1
Keywords: timer, sleep, wake, timed, interval Cc:

Description

This may already be handled automatically, but from looking at the code it appears that putting a computer to sleep might interfere with Sparkle's interval checking. Would it be possible to listen for NSWorkspaceDidWakeNotification and a) schedule an update check at that time, and b) reset the interval timer to every X seconds after that? This would probably have to be an option instead of an automatic feature.

I am able to submit an updated SUUpdater.m file that reschedules the timer automatically if > X seconds have passed (i.e. a check interval has been missed.)

(Previously submitted as #172, forgot to put name in.)