fix(async): return correct values

This commit is contained in:
Lewis Russell 2023-11-16 15:41:36 +00:00
parent 30541b73e9
commit 37d26d718f
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ local function run(func, callback, ...)
if coroutine.status(co) == 'dead' then
if callback then
callback(unpack(ret, 4, table.maxn(ret)))
callback(unpack(ret, 2, table.maxn(ret)))
end
return
end