aboutsummaryrefslogtreecommitdiffstats
path: root/src/worker.c
diff options
context:
space:
mode:
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,