This commit is contained in:
aozhiwei 2024-04-24 16:34:17 +08:00
parent 2c3f436e8c
commit 2819adee6b

View File

@ -43,7 +43,9 @@ func (this *player) IsBattling() bool {
} }
func (this *player) SendMsg(rspMsg proto.Message) { func (this *player) SendMsg(rspMsg proto.Message) {
GetWspListener().SendProxyMsg(this.socket.Conn, this.socket.SocketHandle, rspMsg) if this.socket.IsValid() {
GetWspListener().SendProxyMsg(this.socket.Conn, this.socket.SocketHandle, rspMsg)
}
} }
func (this *player) reBind(socket f5.WspCliConn, sessionId string) { func (this *player) reBind(socket f5.WspCliConn, sessionId string) {