mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 22:07:34 +00:00
fix: send packed log if 30 is waiting
This commit is contained in:
parent
1ce99b7e76
commit
9144bdf977
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue
Block a user