From cfe62769afcff07674fba16e9b559cb3caabba12 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 31 Jan 2022 19:56:22 +0100 Subject: [PATCH] ensure that messages are received through ack --- serverCommunication/serverCommunication.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serverCommunication/serverCommunication.go b/serverCommunication/serverCommunication.go index 91ebde5..85605e4 100644 --- a/serverCommunication/serverCommunication.go +++ b/serverCommunication/serverCommunication.go @@ -47,7 +47,7 @@ func AckHandler() { msg.TrySendCount++ } - logger.Minecraft.Println("ackHandler mc", msg.TrySendCount, currentTime.UnixMilli()-msg.Time.UnixMilli()) + logger.Minecraft.Println("ackHandler mc", msg.TrySendCount, kraSettingsConfig.Cfg.WebSocket.AckTimeouts[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()