fix: send packed log if 30 is waiting

This commit is contained in:
Linventif 2024-08-12 13:52:19 +00:00
parent 1ce99b7e76
commit 9144bdf977

View File

@ -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",