From a122a544da0f05263cfb8fe7841325ef58364bb8 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 6 Jul 2020 13:26:40 +0200 Subject: [PATCH] WebContent: Shut down WebContent process when last client disconnects Note that there is only ever one client. --- Services/WebContent/ClientConnection.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Services/WebContent/ClientConnection.cpp b/Services/WebContent/ClientConnection.cpp index 9def52c455..462c5c555a 100644 --- a/Services/WebContent/ClientConnection.cpp +++ b/Services/WebContent/ClientConnection.cpp @@ -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()