From fc0812d94edbc12be05da2c229db955a1ecf0257 Mon Sep 17 00:00:00 2001 From: Max Cahill <1bardesign@gmail.com> Date: Tue, 28 Apr 2020 17:05:25 +1000 Subject: [PATCH] [fixed] possible missing args causing issues in async --- async.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/async.lua b/async.lua index 65306e6..6cdd216 100644 --- a/async.lua +++ b/async.lua @@ -64,7 +64,7 @@ function async:update() --(using unpack because coroutine is also nyi and it's core to this async model) local co, args, cb, error_cb = unpack(td) --(8 temps rather than table churn capturing varargs) - local success, a, b, c, d, e, f, g, h = coroutine.resume(co, unpack(args)) + local success, a, b, c, d, e, f, g, h = coroutine.resume(co, args and unpack(args)) --error? if not success then if error_cb then