From 9144bdf977a2047f0f1efa0c994bc2e7373ffc80 Mon Sep 17 00:00:00 2001 From: Linventif Date: Mon, 12 Aug 2024 13:52:19 +0000 Subject: [PATCH] fix: send packed log if 30 is waiting --- lua/gmod_integration/shared/sh_http.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/gmod_integration/shared/sh_http.lua b/lua/gmod_integration/shared/sh_http.lua index 54df517..c445e37 100644 --- a/lua/gmod_integration/shared/sh_http.lua +++ b/lua/gmod_integration/shared/sh_http.lua @@ -114,7 +114,7 @@ function gmInte.http.postLog(endpoint, data) }) timer.Simple(3, function() - if #nextLogPacket == logPacketIndex then + if #nextLogPacket == logPacketIndex || #nextLogPacket >= 30 then gmInte.http.requestAPI({ ["endpoint"] = "/servers/:serverID/logs", ["method"] = "POST",