diff options
-rw-r--r-- | WindowServer/WSMessageLoop.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WindowServer/WSMessageLoop.cpp b/WindowServer/WSMessageLoop.cpp index 88fe0d5a95..06731e0375 100644 --- a/WindowServer/WSMessageLoop.cpp +++ b/WindowServer/WSMessageLoop.cpp @@ -146,7 +146,7 @@ void WSMessageLoop::wait_for_message() } } - int rc = select(max_fd + 1, &rfds, nullptr, nullptr, m_queued_messages.is_empty() ? nullptr : &timeout); + int rc = select(max_fd + 1, &rfds, nullptr, nullptr, m_queued_messages.is_empty() && m_timers.is_empty() ? nullptr : &timeout); if (rc < 0) { ASSERT_NOT_REACHED(); } |