fix: if error in the start then wait 1 sec and retry

This commit is contained in:
Linventif 2024-03-10 03:40:45 +01:00
parent 471d0ca0a2
commit 58d6477d4b
No known key found for this signature in database
GPG Key ID: FAC0CA60F9AEEC24

View File

@ -4,7 +4,18 @@
function gmInte.sendLuaErrorReport(err, realm, stack, name, id, uptime)
if (name != "gmod_integration") then return end
if (SERVER && math.Round(RealTime()) == 0) then return timer.Simple(1, function() gmInte.sendLuaErrorReport(err, realm, stack, name, id, math.Round(RealTime())) end) end
if (SERVER && math.Round(RealTime()) == 0) then
return timer.Simple(1, function()
gmInte.sendLuaErrorReport(err, realm, stack, name, id, math.Round(RealTime()))
end)
end
if (CLIENT && (!IsValid(LocalPlayer()) || !gmInte.config.token)) then
return timer.Simple(1, function()
gmInte.sendLuaErrorReport(err, realm, stack, name, id, math.Round(RealTime()))
end)
end
gmInte.http.post("/errors",
{