mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:27:45 +00:00
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.
This commit is contained in:
parent
30e19c5a00
commit
ed703b461b
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue