summaryrefslogtreecommitdiff
path: root/WindowServer/WSMessageLoop.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-13 09:38:32 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-13 09:38:32 +0100
commit269f9ae5241bb4bccc253b75a424af9c373e764c (patch)
tree5329e7ce2223b5c09f8588dc4c32c92787f3d0ad /WindowServer/WSMessageLoop.cpp
parentc5a00a56c831deeff1261241d403e41e854e7e94 (diff)
downloadserenity-269f9ae5241bb4bccc253b75a424af9c373e764c.zip
WindowServer: Forgot to actually set 'had_any_timer' after we had any timer.
Diffstat (limited to 'WindowServer/WSMessageLoop.cpp')
-rw-r--r--WindowServer/WSMessageLoop.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/WindowServer/WSMessageLoop.cpp b/WindowServer/WSMessageLoop.cpp
index 536f1f5292..71b3e6641f 100644
--- a/WindowServer/WSMessageLoop.cpp
+++ b/WindowServer/WSMessageLoop.cpp
@@ -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))