m-config-endpoint: deactivate gracefully even if not activated

This may happen if the plugins were loaded but not activated
due to some parse error in wireplumber.conf
This commit is contained in:
George Kiagiadakis 2020-06-26 18:42:37 +03:00
parent 826e5e3c46
commit ac295b10e3

View file

@ -332,7 +332,7 @@ wp_config_endpoint_context_deactivate (WpPlugin *plugin)
wp_configuration_remove_extension (config, WP_PARSER_STREAMS_EXTENSION);
}
{
if (self->nodes_om) {
g_autoptr (WpIterator) it = wp_object_manager_iterate (self->nodes_om);
wp_iterator_foreach (it, remove_all_nodes, NULL);
}