Skip to content

Commit

Permalink
use daemon threads
Browse files Browse the repository at this point in the history
  • Loading branch information
xzel23 committed Jan 5, 2024
1 parent 15a5112 commit 356203d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ private void init() {
}
}
});
thread.setDaemon(true);
thread.start();

Thread thread2 = new Thread(() -> {
Expand All @@ -246,6 +247,7 @@ private void init() {
}
progress.finish(TASK_INDETERMINATE_2, ProgressTracker.State.COMPLETED_SUCCESS);
});
thread2.setDaemon(true);
thread2.start();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ private void init() {
}
}
});
thread.setDaemon(true);
thread.start();

Thread thread2 = new Thread(() -> {
Expand All @@ -248,6 +249,7 @@ private void init() {
}
progress.finish(TASK_INDETERMINATE_2, ProgressTracker.State.COMPLETED_SUCCESS);
});
thread2.setDaemon(true);
thread2.start();
}

Expand Down

0 comments on commit 356203d

Please sign in to comment.