From 52b8a91dc5a69071cfeb56ffcbc88de75bd0f823 Mon Sep 17 00:00:00 2001 From: James Seibel Date: Sat, 16 May 2026 10:16:10 -0500 Subject: [PATCH] fix cleanup threadpool preventing JVM shutdown --- .../distanthorizons/core/util/threading/ThreadPoolUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/seibel/distanthorizons/core/util/threading/ThreadPoolUtil.java b/core/src/main/java/com/seibel/distanthorizons/core/util/threading/ThreadPoolUtil.java index aa220cd95..0526e0a1a 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/util/threading/ThreadPoolUtil.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/util/threading/ThreadPoolUtil.java @@ -60,7 +60,7 @@ public class ThreadPoolUtil public static PriorityTaskPicker.Executor getWorldGenExecutor() { return worldGenThreadPool; } public static final String CLEANUP_THREAD_NAME = "Cleanup"; - private static final ThreadPoolExecutor cleanupThreadPool = ThreadUtil.makeSingleThreadPool(CLEANUP_THREAD_NAME); + private static final ThreadPoolExecutor cleanupThreadPool = ThreadUtil.makeSingleDaemonThreadPool(CLEANUP_THREAD_NAME); /** not null since cleanup always needs to be run even when DH has been shut down */ @NotNull public static ThreadPoolExecutor getCleanupExecutor() { return cleanupThreadPool; }