This commit is contained in:
1
2025-10-10 02:23:29 +00:00
parent 0c07da5d1b
commit 43e1ef2a0e
2 changed files with 5 additions and 0 deletions

View File

@@ -40,6 +40,11 @@ func (s *Server) Stop() error {
}
func (s *Server) OnClose(c gnet.Conn, _ error) (action gnet.Action) {
defer func() {
if r := recover(); r != nil {
fmt.Println("Recovered in f", r)
}
}()
atomic.AddInt64(&s.connected, -1)
//logging.Infof("conn[%v] disconnected", c.RemoteAddr().String())
v, ok := c.Context().(*player.ClientData)