```
fix(socket): 启用客户端连接关闭时LF资源清理 移除注释以确保在客户端断开连接时正确关闭LF资源, 防止资源泄露问题。 ```
This commit is contained in:
@@ -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() //保存玩家数据
|
||||
|
||||
|
||||
Reference in New Issue
Block a user