This commit is contained in:
昔念
2026-02-10 10:49:01 +08:00
parent 89645c0f4c
commit c790b68d47
5 changed files with 44 additions and 7 deletions

View File

@@ -249,9 +249,13 @@ func handle(c gnet.Conn) {
func (s *Server) onevent(c gnet.Conn, data []byte) {
if t, ok := c.Context().(*player.ClientData); ok {
s.workerPool.Submit(func() { //提交任务
t.OnEvent(data)
})
if t.LF.Running() {
t.LF.Producer().Write(data)
}
// s.workerPool.Submit(func() { //提交任务
// t.OnEvent(data)
// })
}
}