From 5c136224ad2f0be7e17bc9c4c3f3c15836c8924e Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 31 Jan 2022 19:36:15 +0100 Subject: [PATCH] ensure that messages are received through ack --- serverCommunication/serverCommunication.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/serverCommunication/serverCommunication.go b/serverCommunication/serverCommunication.go index 1e1fe54..91ebde5 100644 --- a/serverCommunication/serverCommunication.go +++ b/serverCommunication/serverCommunication.go @@ -50,6 +50,8 @@ func AckHandler() { logger.Minecraft.Println("ackHandler mc", msg.TrySendCount, currentTime.UnixMilli()-msg.Time.UnixMilli()) if int(currentTime.UnixMilli())-int(msg.Time.UnixMilli()) > kraSettingsConfig.Cfg.WebSocket.AckTimeouts[msg.TrySendCount] { + msg.Time = time.Now() + err := mcClient.SendBinaryMessage(msg.MessageRaw) if err != nil {