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