Fix counting children even if the server is running in WebServer::get_configuration_warning().

This commit is contained in:
Relintai 2023-08-30 15:18:41 +02:00
parent 4874f08d9d
commit 23c793a488

View File

@ -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<WebNode>(get_child(i));
WebNode *wn = Object::cast_to<WebNode>(get_child(i));
if (wn) {
++webnode_count;
}
if (wn) {
++webnode_count;
}
if (!_session_manager) {