Set daemon thread flag for NIO constraint level autodetector thread

This commit is contained in:
Trustin Lee 2009-07-08 13:36:54 +00:00
parent 4497d9362a
commit f414e425e7

View File

@ -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 (;;) {