1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:58:11 +00:00

WebContent: Shut down WebContent process when last client disconnects

Note that there is only ever one client.
This commit is contained in:
Andreas Kling 2020-07-06 13:26:40 +02:00
parent 94ddb07e58
commit a122a544da

View file

@ -51,6 +51,8 @@ ClientConnection::~ClientConnection()
void ClientConnection::die()
{
s_connections.remove(client_id());
if (s_connections.is_empty())
Core::EventLoop::current().quit(0);
}
Web::Page& ClientConnection::page()