Skip to content
Snippets Groups Projects
Commit 7ea6e5b1 authored by Christian Wulf's avatar Christian Wulf
Browse files

fixed bug "merger does not pass start signal"

parent e1ea5565
No related branches found
No related tags found
No related merge requests found
......@@ -54,19 +54,17 @@ public class Merger<T> extends AbstractStage {
public void onSignal(final ISignal signal, final InputPort<?> inputPort) {
this.logger.trace("Got signal: " + signal + " from input port: " + inputPort);
signal.trigger(this);
if (0 == finishedInputPorts) {
signal.trigger(this);
}
this.finishedInputPorts++;
if (this.finishedInputPorts == this.getInputPorts().length) {
this.outputPort.sendSignal(signal);
this.finishedInputPorts = 0;
}
}
@Override
public void onTerminating() throws Exception {
this.finishedInputPorts++;
super.onTerminating();
}
public IMergerStrategy<T> getStrategy() {
return this.strategy;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment