ensure that messages are received through ack

master
Alex 2022-01-31 19:56:22 +01:00
parent 5c136224ad
commit cfe62769af
1 changed files with 1 additions and 1 deletions

View File

@ -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()