daemon: remove connections instead of hidding them if graph is not persisted

This is needed to properly cleanup room graph during room destruction.
ladish_graph_is_empty() returns false if there are hidden connections.
Also it makes no sense to have hidden connections for removed ports
This commit is contained in:
Nedko Arnaudov 2010-05-09 16:13:52 +03:00
parent d8135a5117
commit cd98f23804
1 changed files with 1 additions and 1 deletions

View File

@ -1402,7 +1402,7 @@ ladish_graph_remove_connection(
return;
}
if (force || connection_ptr->changing)
if (force || connection_ptr->changing || !graph_ptr->persist)
{
/* log_info( */
/* "removing connection '%s':'%s' - '%s':'%s'", */