Fix: FlushLogs on server stop

This commit is contained in:
Linventif 2024-08-18 16:55:25 +00:00
parent cc3cfd5b3e
commit 3e5e2b3056

View File

@ -107,6 +107,7 @@ local function flushLogs()
end end
end end
hook.Add("ShutDown", "gmInte:Server:ShutDown:FlushLogs", flushLogs)
timer.Create("gmInte:http:flushLogs", 3, 0, flushLogs) timer.Create("gmInte:http:flushLogs", 3, 0, flushLogs)
function gmInte.http.postLog(endpoint, data) function gmInte.http.postLog(endpoint, data)
table.insert(nextLogPacket, { table.insert(nextLogPacket, {