This commit is contained in:
aozhiwei 2023-09-24 15:57:18 +08:00
parent bbd1c7a7f2
commit a588de77a3

View File

@ -6,6 +6,7 @@ import (
"encoding/json"
"f5"
"fmt"
"net"
"mt"
"q5"
"main/constant"
@ -45,6 +46,16 @@ func (this *playerMgr) Init() {
})
}
})
f5.GetApp().RegisterIMMsgHandle(
constant.IM_WSP_CLOSE,
func (args q5.Args) {
conn := args[0].(net.Conn)
for socket, _ := range(this.socketHash) {
if conn == socket.Conn {
}
}
})
}
func (this *playerMgr) UnInit() {