Changed the interruption interval of ExecutorShutdownUtil just in case the I/O thread is not interrupted on time (this sometimes happens on IBM JDK)

This commit is contained in:
Trustin Lee 2008-12-08 23:31:45 +00:00
parent f7ebba7ce4
commit f2807aaf51

View File

@ -64,7 +64,7 @@ public class ExecutorShutdownUtil {
}
try {
if (es.awaitTermination(1, TimeUnit.SECONDS)) {
if (es.awaitTermination(100, TimeUnit.MILLISECONDS)) {
break;
}
} catch (InterruptedException ex) {