mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Bug 792065 - Uninitialised value use in nsIdleServiceDaily::DailyCallback. r=roc
This commit is contained in:
parent
842df7d4bc
commit
16476eb9fe
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user