mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-31 16:17:12 +01:00
Fix counting children even if the server is running in WebServer::get_configuration_warning().
This commit is contained in:
parent
4874f08d9d
commit
23c793a488
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user