Skip to content

Commit

Permalink
Make obfuscation thread daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
vimasig committed Sep 11, 2021
1 parent c887882 commit f9977fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/io/github/vimasig/bozar/ui/Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ public void initialize() {
buttonObf.setOnAction(actionEvent -> {
this.console.getItems().clear();
this.buttonObf.setDisable(true);
new Thread(this::obfuscate).start();
Thread t = new Thread(this::obfuscate);
t.setDaemon(true);
t.start();
});
buttonAddJAR.setOnAction(actionEvent -> {
FileChooser fileChooser = new FileChooser();
Expand Down

0 comments on commit f9977fa

Please sign in to comment.