fix(async): return correct values
This commit is contained in:
parent
30541b73e9
commit
37d26d718f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue