Skip to content

Commit

Permalink
Fixed wrong order of progress bar dispose.
Browse files Browse the repository at this point in the history
  • Loading branch information
TwoOfTwelve committed Jul 26, 2024
1 parent 5e89cd7 commit e8e1368
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/src/main/java/de/jplag/cli/logger/IdleBar.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public void start() {

@Override
public void dispose() {
super.dispose();
this.running = false;
try {
this.runner.join();
Expand All @@ -61,6 +60,7 @@ public void dispose() {
}
this.output.print('\r');
this.output.println(this.text + ": complete");
super.dispose();
}

private void run() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public void step(int number) {

@Override
public void dispose() {
super.dispose();
this.progressBar.close();
super.dispose();
}
}

0 comments on commit e8e1368

Please sign in to comment.