diff --git a/lua/gmod_integration/shared/sh_http.lua b/lua/gmod_integration/shared/sh_http.lua index a7d6cc5..ebff3b3 100644 --- a/lua/gmod_integration/shared/sh_http.lua +++ b/lua/gmod_integration/shared/sh_http.lua @@ -107,6 +107,7 @@ local function flushLogs() end end +hook.Add("ShutDown", "gmInte:Server:ShutDown:FlushLogs", flushLogs) timer.Create("gmInte:http:flushLogs", 3, 0, flushLogs) function gmInte.http.postLog(endpoint, data) table.insert(nextLogPacket, {