diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-29 13:19:14 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-29 13:19:14 +0000 |
commit | 34f0b5587e72a7f77425d9faccac8b03b363fdcc (patch) | |
tree | 1a03c4c065315bdbdf02f47bfc6c9e64ab90e7d7 /src/rspamd_proxy.c | |
parent | 8376bed06ce63da58256c383f1899f17094140d1 (diff) | |
download | rspamd-34f0b5587e72a7f77425d9faccac8b03b363fdcc.tar.gz rspamd-34f0b5587e72a7f77425d9faccac8b03b363fdcc.zip |
[Rework] Change time handling
Diffstat (limited to 'src/rspamd_proxy.c')
-rw-r--r-- | src/rspamd_proxy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c index 77a5bb7e6..aed642752 100644 --- a/src/rspamd_proxy.c +++ b/src/rspamd_proxy.c @@ -1694,7 +1694,8 @@ rspamd_proxy_self_scan (struct rspamd_proxy_session *session) msg = session->client_message; task = rspamd_task_new (session->worker, session->ctx->cfg, - session->pool, session->ctx->lang_det); + session->pool, session->ctx->lang_det, + session->ctx->ev_base); task->flags |= RSPAMD_TASK_FLAG_MIME; task->sock = -1; @@ -1710,7 +1711,6 @@ rspamd_proxy_self_scan (struct rspamd_proxy_session *session) task->resolver = session->ctx->resolver; /* TODO: allow to disable autolearn in protocol */ task->flags |= RSPAMD_TASK_FLAG_LEARN_AUTO; - task->ev_base = session->ctx->ev_base; task->s = rspamd_session_create (task->task_pool, rspamd_proxy_task_fin, NULL, (event_finalizer_t )rspamd_task_free, task); data = rspamd_http_message_get_body (msg, &len); |