Bug 714717 - Part 1, Sanity check nextWaitTime. r=MikeK

This commit is contained in:
Kan-Ru Chen 2012-01-11 15:38:00 +01:00
Родитель c4b69edd3d
Коммит eb3d334e41
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -413,7 +413,9 @@ nsIdleService::CheckAwayState(bool aNoTimeReset)
// In order to find when the next idle event should time out, we need to
// subtract the time we should wait, from the time that has already passed.
nextWaitTime -= idleTime;
if (PR_UINT32_MAX != nextWaitTime) {
nextWaitTime -= idleTime;
}
// Notify all listeners that just timed out.
for (PRInt32 i = 0; i < notifyList.Count(); i++) {