1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 15:34:58 +00:00

WindowServer: Forgot to actually set 'had_any_timer' after we had any timer.

This commit is contained in:
Andreas Kling 2019-02-13 09:38:32 +01:00
parent c5a00a56c8
commit 269f9ae524

View file

@ -160,6 +160,7 @@ void WSMessageLoop::wait_for_message()
auto& timer = *it.value;
if (!had_any_timer) {
timeout = timer.next_fire_time;
had_any_timer = true;
continue;
}
if (timer.next_fire_time.tv_sec > timeout.tv_sec || (timer.next_fire_time.tv_sec == timeout.tv_sec && timer.next_fire_time.tv_usec > timeout.tv_usec))