diff options
author | Mikhail Galanin <mgalanin@mimecast.com> | 2018-08-15 12:30:36 +0100 |
---|---|---|
committer | Mikhail Galanin <mgalanin@mimecast.com> | 2018-08-15 12:30:36 +0100 |
commit | cfe8fb280d2795d5929f8b2088e9b1f141f465cd (patch) | |
tree | a229517709c4f83ef8810dee8c8781b3c16ed570 /src/lua | |
parent | 1d87ee0bef1ae13e22f7561e7e60ddf08c1b677b (diff) | |
download | rspamd-cfe8fb280d2795d5929f8b2088e9b1f141f465cd.tar.gz rspamd-cfe8fb280d2795d5929f8b2088e9b1f141f465cd.zip |
[Minor] Lua v5.3 compatibility
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index 56e459e94..caba5c98c 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); |