aboutsummaryrefslogtreecommitdiffstats
path: root/src/worker.c
diff options
context:
space:
mode:
authorMikhail Galanin <mgalanin@mimecast.com>2018-08-24 09:17:13 +0100
committerMikhail Galanin <mgalanin@mimecast.com>2018-08-24 09:17:13 +0100
commit3c0b613742ac6fa4fc75f384387d69d753f8a682 (patch)
tree8e8852706ceb47ee41761ddd91509f5da3ffd50b /src/worker.c
parent6d12ba86f224b77a5047643e7c304fef1d763b26 (diff)
downloadrspamd-3c0b613742ac6fa4fc75f384387d69d753f8a682.tar.gz
rspamd-3c0b613742ac6fa4fc75f384387d69d753f8a682.zip
[Minor] call periodic, finish and on_load via coroutine
Diffstat (limited to 'src/worker.c')
-rw-r--r--src/worker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/worker.c b/src/worker.c
index f26a86ff7..f1b75b0d9 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -108,7 +108,7 @@ rspamd_worker_call_finish_handlers (struct rspamd_worker *worker)
task);
DL_FOREACH (cfg->finish_callbacks, sc) {
- lua_call_finish_script (cfg->lua_state, sc, task);
+ lua_call_finish_script (sc, task);
}
task->flags &= ~RSPAMD_TASK_FLAG_PROCESSING;