Skip to content

Commit

Permalink
[XTF-CORE-581] close Output and Error stream threads after command is…
Browse files Browse the repository at this point in the history
… done
  • Loading branch information
kstekovi authored and mnovak1 committed Sep 18, 2024
1 parent f262f2a commit 9e9ce02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/java/cz/xtf/core/openshift/CLIUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public static String executeCommand(Map<String, String> environmentVariables, St
});

int result = p.waitFor();
// Shutdown the output and error streams
es.shutdown();

if (result == 0) {
String commandOutput = out.get();
Expand Down

0 comments on commit 9e9ce02

Please sign in to comment.