diff options
Diffstat (limited to 'host/lib')
| -rw-r--r-- | host/lib/rfnoc/graph.cpp | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/host/lib/rfnoc/graph.cpp b/host/lib/rfnoc/graph.cpp index d4f2d37e7..2edf591b3 100644 --- a/host/lib/rfnoc/graph.cpp +++ b/host/lib/rfnoc/graph.cpp @@ -200,6 +200,9 @@ void graph_t::disconnect(node_ref_t src_node, node_ref_t dst_node, graph_edge_t          _remove_node(src_node);      } +    // Re-look up the vertex descriptor for dst_node, as the act of removing +    // src_node may have modified it +    dst_vertex_desc = _node_map.at(dst_node);      if (boost::degree(dst_vertex_desc, _graph) == 0) {          _remove_node(dst_node);      } | 
