Skip to content

Commit 3f542d9

Browse files
author
Dave Syer
committed
Don't change daemon status of new threads
Signed-off-by: Dave Syer <dsyer@vmware.com>
1 parent 41eb901 commit 3f542d9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

util/src/main/java/io/kubernetes/client/util/Threads.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ public static ThreadFactory threadFactory(String format) {
2323
final AtomicInteger threadNumber = new AtomicInteger(1);
2424
return r -> {
2525
Thread thread = defaultFactory.newThread(r);
26-
if (!thread.isDaemon()) {
27-
thread.setDaemon(true);
28-
}
26+
// Daemon status inherited from default
2927
thread.setName(String.format(format, threadNumber.getAndIncrement()));
3028
return thread;
3129
};

0 commit comments

Comments
 (0)