From 45f1220aa5bcfd7b2dd4a064a4ba6683f4f6e27f Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 15 Jul 2019 00:55:51 +0200 Subject: [PATCH] Fix deadlock when removing routes (initialization issues) _setup_chain needs to point to the unused graph-chain, and not _current_chain. Otherwise Graph::clear_other_chain() waits forever. --- libs/ardour/graph.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/graph.cc b/libs/ardour/graph.cc index 45edd1ebbc..1d6218917e 100644 --- a/libs/ardour/graph.cc +++ b/libs/ardour/graph.cc @@ -62,7 +62,7 @@ Graph::Graph (Session& session) , _graph_empty (true) , _current_chain (0) , _pending_chain (0) - , _setup_chain (0) + , _setup_chain (1) { g_atomic_int_set (&_terminal_refcnt, 0); g_atomic_int_set (&_terminate, 0);