summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-01-25 21:37:50 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-25 22:31:22 +0100
commited703b461b3c6517251b5139e24254b21493d2f5 (patch)
tree9e4f43e2b978b845560bef0005315a8e6f8b03df /Userland
parent30e19c5a006498f3c1b1efb20cdf8bfd6f0ae168 (diff)
downloadserenity-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.cpp1
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()