1
This commit is contained in:
parent
bbd1c7a7f2
commit
a588de77a3
@ -6,6 +6,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"f5"
|
"f5"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"net"
|
||||||
"mt"
|
"mt"
|
||||||
"q5"
|
"q5"
|
||||||
"main/constant"
|
"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() {
|
func (this *playerMgr) UnInit() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user