fix: fix stopping when database is disabled

This commit is contained in:
ChomeNS
2024-12-28 13:21:20 +07:00
parent a1da3dbc2c
commit 90aef4e594

View File

@@ -156,7 +156,7 @@ public class Main {
executorService.shutdown();
database.stop();
if (database != null) database.stop();
try {
final boolean ignoredExecutorDone = executor.awaitTermination(5, TimeUnit.SECONDS);