Fix deadlock when removing routes (initialization issues)
authorRobin Gareus <robin@gareus.org>
Sun, 14 Jul 2019 22:55:51 +0000 (00:55 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 14 Jul 2019 22:55:51 +0000 (00:55 +0200)
_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

index 45edd1ebbcedc1192f54d03d897e5a1a77a07050..1d6218917e7d758d08ce11e7c91fa497cdf2dfdc 100644 (file)
@@ -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);