]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Lua v5.3 compatibility
authorMikhail Galanin <mgalanin@mimecast.com>
Wed, 15 Aug 2018 11:30:36 +0000 (12:30 +0100)
committerMikhail Galanin <mgalanin@mimecast.com>
Wed, 15 Aug 2018 11:30:36 +0000 (12:30 +0100)
src/lua/lua_config.c

index 56e459e94db3ee75eea2ff4d2f2c055257c0b7fd..caba5c98c1e2aec1f8611e8173ce944c6370c202 100644 (file)
@@ -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);