mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-22 15:44:45 +00:00
WebContent: Shut down WebContent process when last client disconnects
Note that there is only ever one client.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user