fix(socket): 启用客户端连接关闭时LF资源清理

移除注释以确保在客户端断开连接时正确关闭LF资源,
防止资源泄露问题。
```
This commit is contained in:
昔念
2026-03-03 23:41:24 +08:00
parent 0c7fd18bc9
commit 907517595c

View File

@@ -86,7 +86,7 @@ func (s *Server) OnClose(c gnet.Conn, err error) (action gnet.Action) {
//logging.Infof("conn[%v] disconnected", c.RemoteAddr().String())
v, _ := c.Context().(*player.ClientData)
//v.LF.Close()
v.LF.Close()
if v.Player != nil {
v.Player.Save() //保存玩家数据