mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 14:57:35 +00:00
WebContent: Shut down WebContent process when last client disconnects
Note that there is only ever one client.
This commit is contained in:
parent
94ddb07e58
commit
a122a544da
1 changed files with 2 additions and 0 deletions
|
@ -51,6 +51,8 @@ ClientConnection::~ClientConnection()
|
||||||
void ClientConnection::die()
|
void ClientConnection::die()
|
||||||
{
|
{
|
||||||
s_connections.remove(client_id());
|
s_connections.remove(client_id());
|
||||||
|
if (s_connections.is_empty())
|
||||||
|
Core::EventLoop::current().quit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
Web::Page& ClientConnection::page()
|
Web::Page& ClientConnection::page()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue