1
This commit is contained in:
parent
74466e42d8
commit
02086f8467
@ -34,6 +34,13 @@ func (this *player) init(req *pendingLoginRequest){
|
||||
this.sessionId = req.msg.GetSessionId()
|
||||
}
|
||||
|
||||
func (this *player) onOffline(){
|
||||
this.socket.Reset()
|
||||
if this.room != nil {
|
||||
this.room.OnPlayerOffline(this)
|
||||
}
|
||||
}
|
||||
|
||||
func (this *player) CMCreateRoom(hdr *f5.MsgHdr, msg *cs.CMCreateRoom) {
|
||||
}
|
||||
|
||||
|
@ -227,8 +227,5 @@ func (this *playerMgr) SS_WSP_SocketDisconnect(hdr *f5.MsgHdr, msg *ss.SS_WSP_So
|
||||
return
|
||||
}
|
||||
delete(this.socketHash, hdr.GetSocket())
|
||||
hum.socket.Reset()
|
||||
if hum.room != nil {
|
||||
hum.room.OnPlayerOffline(hum)
|
||||
}
|
||||
hum.onOffline()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user