Skip to content

Commit

Permalink
Merge pull request #61 from Thibstars/bugfix/60/try-to-fix-launch-fra…
Browse files Browse the repository at this point in the history
…me-that-doesnt-always-close
  • Loading branch information
Thibstars authored Oct 19, 2023
2 parents 868238f + 222e0d8 commit d41f46c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ public void launch() throws InterruptedException {
SwingUtilities.invokeLater(() -> {
launchFrame.updateProgress(taskCount - tasksLeft.intValue());
launchFrame.updateProgressName(progressName);
if (tasksLeft == 0) {
launchFrame.setVisible(false);
if (tasksLeft <= 0) {
launchFrame.dispose();
}
});
};
Expand Down Expand Up @@ -104,8 +104,8 @@ private static void shutDownLaunchProcess(ExecutorService executorService, Sched
Runnable statusUpdater)
throws InterruptedException {
statusUpdater.run();
executorService.shutdown();
executorService.awaitTermination(5, TimeUnit.SECONDS);
executorService.shutdown();
scheduledExecutorService.shutdown();
}

Expand Down

0 comments on commit d41f46c

Please sign in to comment.