diff options
author | Linus Groh <mail@linusgroh.de> | 2021-01-25 21:37:50 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-25 22:31:22 +0100 |
commit | ed703b461b3c6517251b5139e24254b21493d2f5 (patch) | |
tree | 9e4f43e2b978b845560bef0005315a8e6f8b03df /Userland | |
parent | 30e19c5a006498f3c1b1efb20cdf8bfd6f0ae168 (diff) | |
download | serenity-ed703b461b3c6517251b5139e24254b21493d2f5.zip |
WindowServer: Fix client unresponsiveness detection
This broke in add01b3, where Core::Timer::create_single_shot() was
changed to create a stopped timer. Fix it by actually starting the timer
right away ourselves.
Fixes #5111.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Services/WindowServer/ClientConnection.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Services/WindowServer/ClientConnection.cpp b/Userland/Services/WindowServer/ClientConnection.cpp index 947b25c8f5..3fdce5cd6c 100644 --- a/Userland/Services/WindowServer/ClientConnection.cpp +++ b/Userland/Services/WindowServer/ClientConnection.cpp @@ -892,6 +892,7 @@ void ClientConnection::may_have_become_unresponsive() m_ping_timer = Core::Timer::create_single_shot(1000, [this] { set_unresponsive(true); }); + m_ping_timer->start(); } void ClientConnection::did_become_responsive() |