mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:48:10 +00:00
LibIPC: Only start responsiveness timer after sending client a message
Instead of always running the responsiveness timer for IPC clients, we now only start it after sending a message. This avoids waking up otherwise idle clients to do ping/pong busywork.
This commit is contained in:
parent
47df0cbbc8
commit
4ab1b0b436
3 changed files with 13 additions and 2 deletions
|
@ -844,4 +844,9 @@ void ClientConnection::may_have_become_unresponsive()
|
|||
});
|
||||
}
|
||||
|
||||
void ClientConnection::did_become_responsive()
|
||||
{
|
||||
set_unresponsive(false);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue