1
Fork 0
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:
Andreas Kling 2020-06-13 13:47:01 +02:00
parent 47df0cbbc8
commit 4ab1b0b436
3 changed files with 13 additions and 2 deletions

View file

@ -844,4 +844,9 @@ void ClientConnection::may_have_become_unresponsive()
});
}
void ClientConnection::did_become_responsive()
{
set_unresponsive(false);
}
}