ensure that messages are received through ack

master
Alex 2022-01-31 19:36:15 +01:00
parent 869915a92f
commit 5c136224ad
1 changed files with 2 additions and 0 deletions

View File

@ -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 {