Skip to content

Commit 13efea4

Browse files
Set worker threads as daemon in ExecutorService
1 parent 3f73da7 commit 13efea4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/password4j/Utils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ static ExecutorService createExecutorService()
665665
{
666666
ExecutorService executorService = Executors.newFixedThreadPool(AVAILABLE_PROCESSORS, runnable -> {
667667
Thread thread = new Thread(THREAD_GROUP, runnable, "password4j-worker-" + THREAD_COUNTER.getAndIncrement());
668-
thread.setDaemon(false);
668+
thread.setDaemon(true);
669669
return thread;
670670
});
671671

0 commit comments

Comments
 (0)