they always exceed the timeout lol

This commit is contained in:
Chayapak 2024-10-18 14:22:21 +07:00
parent 729db37cdc
commit 39b31edeb4

View file

@ -196,10 +196,6 @@ public class Main {
try {
final boolean executorDone = executor.awaitTermination(5, TimeUnit.SECONDS);
final boolean executorServiceDone = executorService.awaitTermination(5, TimeUnit.SECONDS);
if (!executorDone || !executorServiceDone) {
System.out.println("Executors failed to shut down");
}
} catch (InterruptedException e) {
e.printStackTrace();
}