refactor: remove awaitTermination

This commit is contained in:
ChomeNS
2025-01-07 17:14:30 +07:00
parent ae8be94be3
commit eacd91a369
2 changed files with 1 additions and 6 deletions

View File

@@ -183,11 +183,6 @@ public class Main {
if (database != null) database.stop();
try {
final boolean ignoredExecutorDone = executor.awaitTermination(5, TimeUnit.SECONDS);
final boolean ignoredExecutorServiceDone = executorService.awaitTermination(5, TimeUnit.SECONDS);
} catch (InterruptedException ignored) {}
ArrayList<Bot> copiedList;
synchronized (bots) {
copiedList = new ArrayList<>(bots);