diff --git a/message_server/simulation_state_ms.go b/message_server/simulation_state_ms.go index 54f416e..b4a949d 100644 --- a/message_server/simulation_state_ms.go +++ b/message_server/simulation_state_ms.go @@ -12,7 +12,7 @@ func NewStateMs(vs *memory.VerifySimulation) ms_api.MsgTask { return ms_api.NewMonitorTask("仿真状态", func() { ecs.WorldStateChangeEvent.Subscribe(vs.World, func(_ ecs.World, e ecs.WorldStateChange) { switch e.NewState { - case ecs.WorldClose: + case ecs.WorldClosed: mqtt.PubSimulationState(vs.SimulationId, &state.SimulationStatus{ SimulationId: vs.SimulationId, State: state.SimulationStatus_DESTROY,