From 23c793a4881478b96dbf79b0a507068b7902aadb Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 30 Aug 2023 15:18:41 +0200 Subject: [PATCH] Fix counting children even if the server is running in WebServer::get_configuration_warning(). --- modules/web/http/web_server.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/web/http/web_server.cpp b/modules/web/http/web_server.cpp index 7f22d8092e..eb8cda2c6d 100644 --- a/modules/web/http/web_server.cpp +++ b/modules/web/http/web_server.cpp @@ -77,12 +77,10 @@ String WebServer::get_configuration_warning() const { int session_manager_count = 0; for (int i = 0; i < get_child_count(); ++i) { - if (!_web_root) { - WebNode *wn = Object::cast_to(get_child(i)); + WebNode *wn = Object::cast_to(get_child(i)); - if (wn) { - ++webnode_count; - } + if (wn) { + ++webnode_count; } if (!_session_manager) {