Skip to content

Commit

Permalink
Fix counting children even if the server is running in WebServer::get…
Browse files Browse the repository at this point in the history
…_configuration_warning().
  • Loading branch information
Relintai committed Aug 30, 2023
1 parent 4874f08 commit 23c793a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions modules/web/http/web_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 23c793a

Please sign in to comment.