diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-19 18:36:47 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-19 18:36:47 +0100 |
commit | 2ec42fe11c7d9b1f5d1447803bd9453a768866ef (patch) | |
tree | 4358a7f937bd97442f38d977cb710f43d0f6f4d1 /lualib/lua_redis.lua | |
parent | e8afa71d30815ed997ee7b5bafc5067bea7a94c1 (diff) | |
download | rspamd-2ec42fe11c7d9b1f5d1447803bd9453a768866ef.tar.gz rspamd-2ec42fe11c7d9b1f5d1447803bd9453a768866ef.zip |
[Test] Sigh, just wait...
Diffstat (limited to 'lualib/lua_redis.lua')
-rw-r--r-- | lualib/lua_redis.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lualib/lua_redis.lua b/lualib/lua_redis.lua index f62ee05bb..67bf271ab 100644 --- a/lualib/lua_redis.lua +++ b/lualib/lua_redis.lua @@ -1299,7 +1299,14 @@ local function exec_redis_script(id, params, callback, keys, args) table.insert(script.waitq, do_call) else -- TODO: fix taskfull requests - callback('NOSCRIPT', nil) + table.insert(script.waitq, function() + if script.loaded then + do_call(false) + else + callback('NOSCRIPT', nil) + end + end) + load_script_task(script, params.task) end end |