From cfe8fb280d2795d5929f8b2088e9b1f141f465cd Mon Sep 17 00:00:00 2001 From: Mikhail Galanin Date: Wed, 15 Aug 2018 12:30:36 +0100 Subject: [PATCH] [Minor] Lua v5.3 compatibility --- src/lua/lua_config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index 56e459e94d..caba5c98c1 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -1232,7 +1232,7 @@ lua_metric_symbol_callback (struct rspamd_task *task, gpointer ud) rspamd_lua_setclass (thread, "rspamd{task}", -1); *ptask = task; - ret = lua_resume (thread, 1); + ret = lua_do_resume (thread, 1); if (ret != LUA_YIELD) { /* @@ -1260,7 +1260,7 @@ lua_resume_thread (struct rspamd_task *task, struct thread_entry *thread_entry, gint ret; lua_thread_pool_set_running_entry (task->cfg->lua_thread_pool, thread_entry); - ret = lua_resume (thread_entry->lua_state, narg); + ret = lua_do_resume (thread_entry->lua_state, narg); if (ret != LUA_YIELD) { lua_metric_symbol_callback_return (task, thread_entry, thread_entry->cd, ret); -- 2.47.3