aboutsummaryrefslogtreecommitdiffstats
path: root/src/worker.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-06-17 16:25:07 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-06-22 10:57:29 +0100
commit4b75d23d067118e2874ec3b8726d49e3f185b811 (patch)
treeb97d01b8b2cf4d1d6cb05a0e5b2fed32f368fa5a /src/worker.c
parentde721b490bce9f95385ab451da1190f934cf3425 (diff)
downloadrspamd-4b75d23d067118e2874ec3b8726d49e3f185b811.tar.gz
rspamd-4b75d23d067118e2874ec3b8726d49e3f185b811.zip
[Project] Adopt Lua API
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 a202d0917..62c781c05 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -97,7 +97,7 @@ rspamd_worker_call_finish_handlers (struct rspamd_worker *worker)
if (cfg->on_term_scripts) {
ctx = worker->ctx;
/* Create a fake task object for async events */
- task = rspamd_task_new (worker, cfg, NULL, NULL, ctx->ev_base);
+ task = rspamd_task_new (worker, cfg, NULL, NULL, ctx->event_loop);
task->resolver = ctx->resolver;
task->flags |= RSPAMD_TASK_FLAG_PROCESSING;
task->s = rspamd_session_create (task->task_pool,