master
Alex 2022-03-15 20:48:38 +01:00
parent a2e34202d3
commit f8b4b26a04
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ func HandleWebMessage(isVoice bool, conn *websocket.Conn, uuid string, msg []byt
if status == kraProtocol.StatusReply {
if isVoice {
logger.WebVoice.Debugln("Reply from Web Voice")
logger.WebVoice.Debugln("Reply from Web Voice", webClient.VoiceCmdIDsByBackend)
for _, data := range webClient.VoiceCmdIDsByBackend {
if data.WebCmdID == cmdID { // forward to target dest
mcClient := GetMinecraftClientByName(getMinecraftServerNameByDest(data.DestFromMinecraftServer))
@ -60,7 +60,7 @@ func HandleWebMessage(isVoice bool, conn *websocket.Conn, uuid string, msg []byt
webClient.RemoveVoiceCmdID(cmdID)
}
} else {
logger.WebMobile.Debugln("Reply from Web Mobile")
logger.WebMobile.Debugln("Reply from Web Mobile", webClient.MobileCmdIDsByBackend)
for _, data := range webClient.MobileCmdIDsByBackend {
if data.WebCmdID == cmdID { // forward to target dest
mcClient := GetMinecraftClientByName(getMinecraftServerNameByDest(data.DestFromMinecraftServer))