From 3e5e2b30565a79fd936d18484f8ba4ec10174872 Mon Sep 17 00:00:00 2001 From: Linventif Date: Sun, 18 Aug 2024 16:55:25 +0000 Subject: [PATCH] Fix: FlushLogs on server stop --- lua/gmod_integration/shared/sh_http.lua | 1 + 1 file changed, 1 insertion(+) 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, {