Bug 792065 - Uninitialised value use in nsIdleServiceDaily::DailyCallback. r=roc

This commit is contained in:
Gian-Carlo Pascutto 2012-09-20 11:37:56 +02:00
parent 842df7d4bc
commit 16476eb9fe

View File

@ -149,6 +149,10 @@ nsIdleServiceDaily::Init()
#ifdef ANDROID
__android_log_print(ANDROID_LOG_INFO, "IdleService", "DailyCallback started");
#endif
// The timer would have been started after the previous idle-daily. Need to
// set this here so DailyCallback knows the timer didn't fire early.
mDailyTimerStart = lastDaily * PR_USEC_PER_SEC;
// Wait for the user to become idle, so we can do todays idle tasks.
DailyCallback(nullptr, this);
}