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:
parent
d8135a5117
commit
cd98f23804
|
@ -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'", */
|
||||
|
|
Loading…
Reference in New Issue