From aa13ee2956167003e97a87cd3a43b5d006df02ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BC=94=E5=8F=98?= Date: Sun, 26 Feb 2023 14:01:21 +0800 Subject: [PATCH] + fix #62 --- gradle.properties | 2 +- src/main/java/cn/evolvefield/mods/botapi/BotApi.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index ab43617d..69cc90e4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,7 +5,7 @@ org.gradle.jvmargs=-Xmx1G minecraft_version=1.19.3 loader_version=0.14.13 # Mod Properties -version_prefix=1.19.X +version_prefix=1.19.3 mod_version=2.1.3 sdk_version=0.2.1-jdk17 jankson_version=1.2.1 diff --git a/src/main/java/cn/evolvefield/mods/botapi/BotApi.java b/src/main/java/cn/evolvefield/mods/botapi/BotApi.java index 8c301460..d44339ae 100644 --- a/src/main/java/cn/evolvefield/mods/botapi/BotApi.java +++ b/src/main/java/cn/evolvefield/mods/botapi/BotApi.java @@ -99,7 +99,9 @@ private static void killOutThreads() { ConfigHandler.watcher.get().close();//配置监控关闭 BotApi.configWatcherExecutorService.shutdownNow();//监控进程关闭 service.setReconnect(false);//关闭重连 - service.close();//ws客户端关闭 + service.close(1006);//ws客户端关闭 + + } catch (Exception e) { e.printStackTrace(); }