We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82154f5 commit 4a72faeCopy full SHA for 4a72fae
src/Graph.cpp
@@ -84,15 +84,16 @@ void Graph::AddNode(SharedNode node)
84
{
85
if (!node) return;
86
87
- std::lock_guard _(_nodes_mutex);
+ {
88
+ std::lock_guard _(_nodes_mutex);
89
+ _nodes.emplace(node->ID(), node);
90
+ }
91
92
node->OnEmitOutput.Bind("PropagateConnectionsData",
93
[this](const UUID& id, const IndexableName& key, SharedNodeData data) {
94
this->PropagateConnectionsData(id, key, std::move(data));
95
});
-
96
OnNodeAdded.Broadcast(node);
- _nodes.emplace(node->ID(), std::move(node));
97
}
98
99
void Graph::RemoveNode(const SharedNode& node)
0 commit comments