13
0

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.
This commit is contained in:
Robin Gareus 2019-07-15 00:55:51 +02:00
parent 53c677e08f
commit 45f1220aa5
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View 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);