From 7816c447fafa2ebe676c6def5bb9b800914795b2 Mon Sep 17 00:00:00 2001 From: walker Date: Tue, 23 Jan 2024 09:41:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4defer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ts/test_simulation_manage.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) }