From 0f99044933d1f7f4faa06064440fa80c559a3606 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 29 Dec 2021 20:43:05 +0100 Subject: [PATCH] reply handling --- serverCommunication/web.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/serverCommunication/web.go b/serverCommunication/web.go index 7bae0fd..2133438 100644 --- a/serverCommunication/web.go +++ b/serverCommunication/web.go @@ -35,9 +35,9 @@ func HandleWebMessage(isVoice bool, conn *websocket.Conn, uuid string, msg []byt // TODO: TODO: handling reply - answering message to target dest (ex. GameServer-1) if isVoice { - for i, data := range webClient.VoiceCMDIDsByBackend { - logger.Web.Debugln("vCmdID range", i, data, cmdID) - if data.CmdID == cmdID { + for vCmdID, data := range webClient.VoiceCMDIDsByBackend { + logger.Web.Debugln("vCmdID range", vCmdID, data, cmdID) + if vCmdID == cmdID { // forward to target dest logger.Web.Debugln("forward to target dest", data)