mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 16:53:04 +08:00
feat(LocalRunnerClient): add shutdown logic for dynamicActionMcpServer
This commit is contained in:
@@ -308,6 +308,7 @@ public class LocalRunnerClient extends RunnerClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void setupShutdownHook() {
|
private void setupShutdownHook() {
|
||||||
|
dynamicActionMcpServer.close();
|
||||||
this.mcpClients.forEach((id, client) -> {
|
this.mcpClients.forEach((id, client) -> {
|
||||||
client.close();
|
client.close();
|
||||||
log.info("[{}] MCP-Client 已关闭", id);
|
log.info("[{}] MCP-Client 已关闭", id);
|
||||||
|
|||||||
Reference in New Issue
Block a user