diff --git a/src/agentscope/server/launcher.py b/src/agentscope/server/launcher.py index 476f48fc7..12f6038fe 100644 --- a/src/agentscope/server/launcher.py +++ b/src/agentscope/server/launcher.py @@ -301,11 +301,11 @@ async def shutdown_signal_handler() -> None: start_event.set() if stop_event is not None: stop_event.wait() + shutdown_cpp_server() logger.info( f"CPP agent server [{server_id}] at {host}:{port} " "stopped successfully", ) - shutdown_cpp_server() return servicer = AgentServerServicer(