We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7d184f commit e638688Copy full SHA for e638688
src/main/java/com/cisco/trex/stateless/TRexTransport.java
@@ -62,6 +62,10 @@ public RPCResponse sendCommand(TRexCommand command) throws IOException {
62
}
63
64
public RPCResponse[] sendCommands(List<TRexCommand> commands) throws IOException {
65
+ if (commands.size() ==1) {
66
+ return new RPCResponse[] {sendCommand(commands.get(0))};
67
+ }
68
+
69
List<Map<String, Object>> commandList = commands.stream().map(TRexCommand::getParameters).collect(Collectors.toList());
70
71
if (commandList.isEmpty()) {
0 commit comments