From cd98f2380493ed53c28ea71a3911d92214a64040 Mon Sep 17 00:00:00 2001 From: Nedko Arnaudov Date: Sun, 9 May 2010 16:13:52 +0300 Subject: [PATCH] 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 --- daemon/graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/graph.c b/daemon/graph.c index fd1e04e8..4bc953f3 100644 --- a/daemon/graph.c +++ b/daemon/graph.c @@ -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'", */ -- 2.11.4.GIT