fix pcalls

This commit is contained in:
2026-03-10 17:15:42 +01:00
parent ad4f80c2b9
commit ca44cf83dc
6 changed files with 7 additions and 13 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ local function get_data()
local oda = _RDS_ODAs[_RDS_ODA_pointer]
if oda ~= false and type(oda.handler) == "function" then
local ok, generated, b, c, d = pcall(oda.handler())
local ok, generated, b, c, d = pcall(oda.handler)
if ok and generated then
_RDS_ODA_pointer = (_RDS_ODA_pointer % #_RDS_ODAs) + 1
b = b | oda.group << 12
+1 -1
View File
@@ -100,7 +100,7 @@ function rds2_group(stream)
local generated = false
checked = 0
while generated == false and checked < #_RDS2_ODAs do
local ok, generated, a, b, c, d = pcall(oda.handler(stream))
local ok, generated, a, b, c, d = pcall(oda.handler, stream)
if not (generated and ok) then
_RDS2_ODA_pointer = _RDS2_ODA_pointer + 1
if _RDS2_ODA_pointer > #_RDS2_ODAs then _RDS2_ODA_pointer = 1 end