ensure that messages are received through ack
parent
5c136224ad
commit
cfe62769af
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue