Skip to content

Commit 89518a7

Browse files
author
Jagrut Kosti
committed
Closing all streams for Process (it opens all 3 streams, regardless you use it or not) since it is not handled automatically by Java.
1 parent d0cfefa commit 89518a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/multichain/command/builders/QueryBuilderCommon.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ protected static String execute(CommandEnum command, String... parameters) throw
163163
outputGobbler.start();
164164

165165
pr.waitFor();
166-
166+
pr.getOutputStream().close();
167167
if(outputGobbler.output.length() > 0)
168168
return outputGobbler.output;
169169

0 commit comments

Comments
 (0)