mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 22:07:34 +00:00
fix: if error in the start then wait 1 sec and retry
This commit is contained in:
parent
471d0ca0a2
commit
58d6477d4b
|
@ -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",
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user