Update to v.0.8.3 of lua file

This commit is contained in:
szporowolik
2019-10-21 01:54:43 +02:00
parent 67eda5d79b
commit cabd8d28bb

View File

@@ -20,7 +20,7 @@ Perun.MOTD_L2 = "Wymagamy obecnosci DCS SRS oraz TeamSpeak - szczegoly na forum"
-- Variable init -- Variable init
Perun.Version = "v0.8.2" Perun.Version = "v0.8.3"
Perun.StatusData = {} Perun.StatusData = {}
Perun.SlotsData = {} Perun.SlotsData = {}
Perun.MissionData = {} Perun.MissionData = {}
@@ -192,7 +192,7 @@ Perun.ConnectToPerun = function ()
Perun.AddLog("TCP connection error : " .. err) Perun.AddLog("TCP connection error : " .. err)
else else
Perun.AddLog("Connected to TCP server") Perun.AddLog("Connected to TCP server")
Perun.TCP:setoption("keepalive") -- Perun.TCP:setoption("keepalive")
Perun.lastReconnect = _now Perun.lastReconnect = _now
end end
end end
@@ -207,7 +207,7 @@ Perun.SendToPerun = function(data_id, data_package)
TempData["instance"]=Perun.Instance TempData["instance"]=Perun.Instance
temp=net.lua2json(TempData) temp=net.lua2json(TempData)
temp=stripChars(temp) temp="<SOT>" .. stripChars(temp) .. "<EOT>"
-- TCP Part - sending -- TCP Part - sending
Perun.AddLog("Sending packet: " .. data_id) Perun.AddLog("Sending packet: " .. data_id)
@@ -527,7 +527,7 @@ Perun.onSimulationFrame = function()
end end
-- Send keepalive -- Send keepalive
if _now > Perun.lastSentKeepAlive + 5 then if _now > Perun.lastSentKeepAlive + 3 then
Perun.lastSentKeepAlive = _now Perun.lastSentKeepAlive = _now
Perun.SendToPerun(0,nil) Perun.SendToPerun(0,nil)
end end