AutoStandby: Always reschedule properly (#9258)

If we attempted to switch to standby with an upcoming task in the near future (< 3), we would forget to re-schedule the standby timer.
reviewable/pr9263/r1
zwim 2 years ago committed by GitHub
parent 6e647a6f4d
commit 6d59ca2c6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -606,6 +606,10 @@ function AutoSuspend:AllowStandbyHandler()
-- This shouldn't prevent us from actually consuming any pending input events first,
-- because if we were woken up by user input, those events should already be in the evdev queue...
UIManager:consumeInputEarlyAfterPM(true)
else
if not self.going_to_suspend then
self:_start_standby()
end
end
end

Loading…
Cancel
Save