Skip to content

Commit

Permalink
gracefully shut down loganalyser when using threads #80
Browse files Browse the repository at this point in the history
  • Loading branch information
rbouckaert committed Jun 10, 2024
1 parent 00cdc15 commit ff54ec2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/beastfx/app/tools/LogAnalyser.java
Original file line number Diff line number Diff line change
Expand Up @@ -812,8 +812,12 @@ public static void main(String[] args) {
start = end;

}
countDown.await();

countDown.await();

// gracefully exit
exec.shutdownNow();
System.exit(0);

} else {
for (int idx=0; idx<files.size(); idx++) {
analyser = new LogAnalyser(files.get(idx), burninPercentage, true, tags);
Expand Down

0 comments on commit ff54ec2

Please sign in to comment.