diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-06-08 19:16:56 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-06-08 19:16:56 +0100 |
commit | e7a43c0fb358c1947fa3e21f2f2442408372d348 (patch) | |
tree | e895630f0a9c21d88da6ef95e077f3baaa3cea13 /src/worker.c | |
parent | e825c3d0d96836c341aeb252c95cf11bb7eab67b (diff) | |
download | rspamd-e7a43c0fb358c1947fa3e21f2f2442408372d348.tar.gz rspamd-e7a43c0fb358c1947fa3e21f2f2442408372d348.zip |
[Minor] Allow to set custom pool for a task
Diffstat (limited to 'src/worker.c')
-rw-r--r-- | src/worker.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/worker.c b/src/worker.c index 5bb4b2d61..80bf13d80 100644 --- a/src/worker.c +++ b/src/worker.c @@ -102,7 +102,7 @@ rspamd_worker_call_finish_handlers (struct rspamd_worker *worker) if (cfg->finish_callbacks) { ctx = worker->ctx; /* Create a fake task object for async events */ - task = rspamd_task_new (worker, cfg); + task = rspamd_task_new (worker, cfg, NULL); task->resolver = ctx->resolver; task->ev_base = ctx->ev_base; task->flags |= RSPAMD_TASK_FLAG_PROCESSING; @@ -369,7 +369,7 @@ accept_socket (gint fd, short what, void *arg) return; } - task = rspamd_task_new (worker, ctx->cfg); + task = rspamd_task_new (worker, ctx->cfg, NULL); msg_info_task ("accepted connection from %s port %d, task ptr: %p", rspamd_inet_address_to_string (addr), |