diff --git a/cli/src/main/java/de/jplag/cli/logger/IdleBar.java b/cli/src/main/java/de/jplag/cli/logger/IdleBar.java index acce8fc13..c9aee2da8 100644 --- a/cli/src/main/java/de/jplag/cli/logger/IdleBar.java +++ b/cli/src/main/java/de/jplag/cli/logger/IdleBar.java @@ -52,7 +52,6 @@ public void start() { @Override public void dispose() { - super.dispose(); this.running = false; try { this.runner.join(); @@ -61,6 +60,7 @@ public void dispose() { } this.output.print('\r'); this.output.println(this.text + ": complete"); + super.dispose(); } private void run() { diff --git a/cli/src/main/java/de/jplag/cli/logger/TongfeiProgressBar.java b/cli/src/main/java/de/jplag/cli/logger/TongfeiProgressBar.java index 067cd160c..d50ed1f18 100644 --- a/cli/src/main/java/de/jplag/cli/logger/TongfeiProgressBar.java +++ b/cli/src/main/java/de/jplag/cli/logger/TongfeiProgressBar.java @@ -18,7 +18,7 @@ public void step(int number) { @Override public void dispose() { - super.dispose(); this.progressBar.close(); + super.dispose(); } }