From f4eb5ada5abb01da86f2283fa24803de590446aa Mon Sep 17 00:00:00 2001 From: badgamernl Date: Sun, 22 Mar 2020 22:56:39 +0100 Subject: [PATCH] Fix async module to allow recursive "async" functions Return `true` in async function to run again --- expcore/async.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expcore/async.lua b/expcore/async.lua index 21ae7080..a988563b 100644 --- a/expcore/async.lua +++ b/expcore/async.lua @@ -36,7 +36,7 @@ local Async = {} local internal_run = Token.register(function(params) local func = Token.get(params.token) - func(unpack(params.params)) + return func(unpack(params.params)) end) --- Register a new async function, must called when the file is loaded