diff --git a/ts/test_simulation_manage.go b/ts/test_simulation_manage.go index b9380aa..f079fa7 100644 --- a/ts/test_simulation_manage.go +++ b/ts/test_simulation_manage.go @@ -83,9 +83,9 @@ func DestroySimulation(simulationId string) { // simulationInfo.Destroy() // 停止ecs world simulationInfo.World.Close() - defer message_server.Close(simulationInfo) + message_server.Close(simulationInfo) // 发布销毁消息 - defer message_server.PubSimulationDestroyMsg(simulationId) + message_server.PubSimulationDestroyMsg(simulationId) // 停止第三方 stopThirdParty(simulationInfo) }