Update ServerEvent.go
This commit is contained in:
@@ -165,6 +165,11 @@ func (s *Server) handleTcp(conn gnet.Conn) (action gnet.Action) {
|
||||
}
|
||||
|
||||
func (s *Server) parser(c gnet.Conn, line []byte) {
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
fmt.Println("Recovered in f", r)
|
||||
}
|
||||
}()
|
||||
//todo 这里待实现注入player实体
|
||||
s.handler.Handle(c, line)
|
||||
}
|
||||
@@ -200,3 +205,4 @@ func handle(c gnet.Conn) {
|
||||
|
||||
//return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user