Skip to content

Commit

Permalink
fix(fabric): 进程关闭
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlimiter committed Mar 2, 2024
1 parent c96380e commit c048a10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fabric/src/main/java/cn/evole/mods/mcbot/McBot.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ public void onServerStopping(MinecraftServer server) {
UserBindApi.save(CONFIG_FOLDER);
ChatRecordApi.save(CONFIG_FOLDER);
CustomCmdHandler.INSTANCE.clear();//自定义命令持久层清空
listenerFactory.stop();//分发器关闭
}

public void onServerStopped(MinecraftServer server) {
listenerFactory.stop();//分发器关闭
service.stop();
messageThread.stop();
CQUtilsExecutor.shutdownNow();
Expand Down

0 comments on commit c048a10

Please sign in to comment.