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
Notes:
sideshowbarker
2024-07-19 05:07:01 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/a122a544da0
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue