删除defer

This commit is contained in:
walker 2024-01-23 09:41:54 +08:00
parent 5c0f16e352
commit 7816c447fa
1 changed files with 2 additions and 2 deletions

View File

@ -83,9 +83,9 @@ func DestroySimulation(simulationId string) {
// simulationInfo.Destroy() // simulationInfo.Destroy()
// 停止ecs world // 停止ecs world
simulationInfo.World.Close() simulationInfo.World.Close()
defer message_server.Close(simulationInfo) message_server.Close(simulationInfo)
// 发布销毁消息 // 发布销毁消息
defer message_server.PubSimulationDestroyMsg(simulationId) message_server.PubSimulationDestroyMsg(simulationId)
// 停止第三方 // 停止第三方
stopThirdParty(simulationInfo) stopThirdParty(simulationInfo)
} }