core: close the configuration file after loading all components

All components are supposed to read the configuration file during
initialization. After that, the file is not needed anymore.
This commit is contained in:
George Kiagiadakis 2024-03-04 17:20:40 +02:00
parent 6321ff9f62
commit 9c3aa5409e

View file

@ -503,6 +503,11 @@ on_components_loaded (WpCore * self, GAsyncResult *res,
return;
}
if (self->conf) {
wp_info_object (self, "done loading components, closing conf file...");
wp_conf_close (self->conf);
}
wp_object_update_features (WP_OBJECT (self), WP_CORE_FEATURE_COMPONENTS, 0);
}