mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +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
Notes:
sideshowbarker
2024-07-18 22:51:42 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/ed703b461b3 Pull-request: https://github.com/SerenityOS/serenity/pull/5114 Issue: https://github.com/SerenityOS/serenity/issues/5111
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…
Reference in a new issue