From a7a2292256ce83bd23788d91b20132b5d6c6fc21 Mon Sep 17 00:00:00 2001 From: Apehum Date: Fri, 9 Jun 2023 20:20:13 +0800 Subject: [PATCH] fix: remove coroutines dispatchers shutdown --- client/changelog.md | 3 +-- common/src/main/java/su/plo/voice/BaseVoice.java | 6 ------ proxy/changelog.md | 1 - server/changelog.md | 2 -- 4 files changed, 1 insertion(+), 11 deletions(-) diff --git a/client/changelog.md b/client/changelog.md index 0be8cbb7b..9c283f2f8 100644 --- a/client/changelog.md +++ b/client/changelog.md @@ -1,2 +1 @@ -- minor bug fixes -- relocate ustats to fix crash on fabric +- Fixed crash when entering singeplayer twice diff --git a/common/src/main/java/su/plo/voice/BaseVoice.java b/common/src/main/java/su/plo/voice/BaseVoice.java index 719f6a4d3..9e33aab4c 100644 --- a/common/src/main/java/su/plo/voice/BaseVoice.java +++ b/common/src/main/java/su/plo/voice/BaseVoice.java @@ -57,12 +57,6 @@ protected void onInitialize() { protected void onShutdown() { backgroundExecutor.shutdown(); addons.clear(); - try { - Dispatchers.INSTANCE.shutdown(); - } catch (Exception e) { - DEBUG_LOGGER.log("Failed to shutdown coroutine dispatchers", e); - // shutdown quietly - } } @Override diff --git a/proxy/changelog.md b/proxy/changelog.md index a46450083..e69de29bb 100644 --- a/proxy/changelog.md +++ b/proxy/changelog.md @@ -1 +0,0 @@ -- minor bug fixes diff --git a/server/changelog.md b/server/changelog.md index 0be8cbb7b..e69de29bb 100644 --- a/server/changelog.md +++ b/server/changelog.md @@ -1,2 +0,0 @@ -- minor bug fixes -- relocate ustats to fix crash on fabric