Skip to content

Commit

Permalink
Software sometimes does not terminate after quitting. Fixes #21.
Browse files Browse the repository at this point in the history
  • Loading branch information
nwaldispuehl committed Feb 7, 2017
1 parent fe272e8 commit 914c753
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ retorte laboratories (retorte.ch) IntervalMusicCompositor change log
FIX Adapted version check URL to new server address.
ADD #20 Check update dialog contains link to latest software version download.
FIX #19 Changing/writing BPM not possible.
FIX #21 Software sometimes does not terminate after quitting.


2016-09-23 2.6.3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import javafx.scene.text.Text;
import javafx.stage.Stage;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;


Expand Down Expand Up @@ -74,7 +75,10 @@ private void updateAlertPaneWith(Node node) {
}

private void startVersionCheck() {
Executors.newSingleThreadExecutor().submit(new VersionCheckTask());
// We are creating a thread executor, but shutting it down right away so it gets collected once the task finishes.
ExecutorService executorService = Executors.newSingleThreadExecutor();
executorService.submit(new VersionCheckTask());
executorService.shutdown();
}

private Hyperlink downloadHyperlink() {
Expand Down

0 comments on commit 914c753

Please sign in to comment.