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:
parent
f7ebba7ce4
commit
f2807aaf51
@ -64,7 +64,7 @@ public class ExecutorShutdownUtil {
|
||||
}
|
||||
|
||||
try {
|
||||
if (es.awaitTermination(1, TimeUnit.SECONDS)) {
|
||||
if (es.awaitTermination(100, TimeUnit.MILLISECONDS)) {
|
||||
break;
|
||||
}
|
||||
} catch (InterruptedException ex) {
|
||||
|
Loading…
Reference in New Issue
Block a user