mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 22:07:34 +00:00
Fix: FlushLogs on server stop
This commit is contained in:
parent
cc3cfd5b3e
commit
3e5e2b3056
|
@ -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, {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user