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

fixed #219

parent 9f46d8ae
No related branches found
No related tags found
No related merge requests found
...@@ -84,7 +84,7 @@ abstract class AbstractRunnableStage implements Runnable { ...@@ -84,7 +84,7 @@ abstract class AbstractRunnableStage implements Runnable {
protected abstract void afterStageExecution(); protected abstract void afterStageExecution();
static AbstractRunnableStage create(final Stage stage) { static AbstractRunnableStage create(final Stage stage) {
if (stage.getTerminationStrategy() == TerminationStrategy.BY_SIGNAL) { if (stage.getInputPorts().size() > 0) {
return new RunnableConsumerStage(stage); return new RunnableConsumerStage(stage);
} else { } else {
return new RunnableProducerStage(stage); return new RunnableProducerStage(stage);
......
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