You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -136,8 +137,12 @@ public IPipeline<TState> RegisterNode(IPipelineNode<TState> node)
136
137
vardestinationIndex=_nodes.Count;
137
138
previousNode.OnNewOutput.Subscribe(output =>
138
139
{
139
-
_logger?.LogTrace($"{LogPrefix}[Node {sourceIndex}] ({previousNode}) passed value [{output?.ToString()??"NULL"}] to [Node {destinationIndex}] ({node}).");
140
-
node.Input=output;
140
+
lock(_lock)
141
+
{
142
+
_logger?.LogTrace(
143
+
$"{LogPrefix}[Node {sourceIndex}] ({previousNode}) passed value [{output?.ToString()??"NULL"}] to [Node {destinationIndex}] ({node}).");
144
+
node.Input=output;
145
+
}
141
146
});
142
147
143
148
_logger?.LogTrace($"{LogPrefix}Passing [Node {sourceIndex}] ({previousNode}) value [{previousNode.Output?.ToString()??"NULL"}] to [Node {destinationIndex}] ({node}).");
@@ -157,8 +162,12 @@ public IPipeline<TState> RegisterNode(IPipelineNode<TState> node)
157
162
varnodeIndex=_nodes.Count-1;
158
163
_subscription=node.OnNewOutput.Subscribe(o =>
159
164
{
160
-
_logger?.LogTrace($"{LogPrefix}[Node {nodeIndex}] ({node}) passed value [{o?.ToString()??"NULL"}] to pipeline output.");
161
-
SetOutputAndCallActionWhenApplicable(o);
165
+
lock(_lock)
166
+
{
167
+
_logger?.LogTrace(
168
+
$"{LogPrefix}[Node {nodeIndex}] ({node}) passed value [{o?.ToString()??"NULL"}] to pipeline output.");
0 commit comments