From e8e1368cbe3df878342d183b7b4b9ec8a8a3c73e Mon Sep 17 00:00:00 2001 From: Alexander Milster Date: Fri, 26 Jul 2024 13:45:46 +0200 Subject: [PATCH] Fixed wrong order of progress bar dispose. --- cli/src/main/java/de/jplag/cli/logger/IdleBar.java | 2 +- cli/src/main/java/de/jplag/cli/logger/TongfeiProgressBar.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); } }