Set daemon thread flag for NIO constraint level autodetector thread
This commit is contained in:
parent
4497d9362a
commit
f414e425e7
@ -257,6 +257,12 @@ class NioProviderMetadata {
|
||||
}, "NIO constraint level detector");
|
||||
|
||||
Thread detectorThread = new Thread(detector);
|
||||
try {
|
||||
detectorThread.setDaemon(true);
|
||||
} catch (Exception e) {
|
||||
logger.warn(
|
||||
"Failed to set the daemon flag of the autodetector thread.", e);
|
||||
}
|
||||
detectorThread.start();
|
||||
|
||||
for (;;) {
|
||||
|
Loading…
Reference in New Issue
Block a user