From cabd8d28bb84dceecc5940f8e00419f2244812db Mon Sep 17 00:00:00 2001 From: szporowolik Date: Mon, 21 Oct 2019 01:54:43 +0200 Subject: [PATCH] Update to v.0.8.3 of lua file --- 01_DCS/Hooks/Perun.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/01_DCS/Hooks/Perun.lua b/01_DCS/Hooks/Perun.lua index 3d77713..0ab2ced 100644 --- a/01_DCS/Hooks/Perun.lua +++ b/01_DCS/Hooks/Perun.lua @@ -20,7 +20,7 @@ Perun.MOTD_L2 = "Wymagamy obecnosci DCS SRS oraz TeamSpeak - szczegoly na forum" -- Variable init -Perun.Version = "v0.8.2" +Perun.Version = "v0.8.3" Perun.StatusData = {} Perun.SlotsData = {} Perun.MissionData = {} @@ -192,7 +192,7 @@ Perun.ConnectToPerun = function () Perun.AddLog("TCP connection error : " .. err) else Perun.AddLog("Connected to TCP server") - Perun.TCP:setoption("keepalive") + -- Perun.TCP:setoption("keepalive") Perun.lastReconnect = _now end end @@ -207,7 +207,7 @@ Perun.SendToPerun = function(data_id, data_package) TempData["instance"]=Perun.Instance temp=net.lua2json(TempData) - temp=stripChars(temp) + temp="" .. stripChars(temp) .. "" -- TCP Part - sending Perun.AddLog("Sending packet: " .. data_id) @@ -527,7 +527,7 @@ Perun.onSimulationFrame = function() end -- Send keepalive - if _now > Perun.lastSentKeepAlive + 5 then + if _now > Perun.lastSentKeepAlive + 3 then Perun.lastSentKeepAlive = _now Perun.SendToPerun(0,nil) end