From bffbe78cfa47f45faa73def902b3826bfbe2f165 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 31 Jan 2022 20:38:06 +0100 Subject: [PATCH] ensure that messages are received through ack --- serverCommunication/serverCommunication.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/serverCommunication/serverCommunication.go b/serverCommunication/serverCommunication.go index d060310..9c96619 100644 --- a/serverCommunication/serverCommunication.go +++ b/serverCommunication/serverCommunication.go @@ -54,13 +54,13 @@ func AckHandler() { if err != nil { logger.Minecraft.Println("ackHandler err sending msg", err) } + + if msg.TrySendCount < 4 { + msg.TrySendCount++ + } } else { logger.Minecraft.Println("ok here") } - - if msg.TrySendCount < 4 { - msg.TrySendCount++ - } } } }