Skip to content

Commit

Permalink
SystemRegistryImpl: reset captured command output in REPL-loop
Browse files Browse the repository at this point in the history
  • Loading branch information
mattirn committed Dec 16, 2020
1 parent 9e1a530 commit 28868af
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,10 @@ public void close() {
reset();
}

public void resetOutput() {
output = null;
}

private void reset() {
outputStream = null;
System.setOut(origOut);
Expand Down Expand Up @@ -1237,6 +1241,7 @@ private ExecutionResult postProcess(CommandData cmd, boolean statement, ConsoleE

public void cleanUp() {
outputStream.close();
outputStream.resetOutput();
if (consoleEngine() != null) {
consoleEngine().purge();
}
Expand Down

0 comments on commit 28868af

Please sign in to comment.