Execute only distinct commands

This commit is contained in:
Reinhard Pointner 2019-05-27 15:25:34 +07:00
parent 877e52c02a
commit d1c1f027d3
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ public class ExecCommand {
private IntStream executeSequence(Stream<MediaBindingBean> group) {
return group.map(v -> {
return template.stream().map(t -> getArgumentValue(t, v)).filter(Objects::nonNull).collect(toList());
}).mapToInt(this::execute);
}).distinct().mapToInt(this::execute);
}
private IntStream executeParallel(Stream<MediaBindingBean> group) {