aboutsummaryrefslogtreecommitdiffstats
path: root/src/worker.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-16 17:08:57 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-16 17:08:57 +0000
commite4d146bfc88fdeed63034f7cc85f2602b25163fb (patch)
treed3a84e44f00fccaa92618c502c11f8c1aecb743b /src/worker.c
parent7a1aac9058a1b5f06d3212f1abf1eae701775a92 (diff)
downloadrspamd-e4d146bfc88fdeed63034f7cc85f2602b25163fb.tar.gz
rspamd-e4d146bfc88fdeed63034f7cc85f2602b25163fb.zip
Fix maps initialisation
Diffstat (limited to 'src/worker.c')
-rw-r--r--src/worker.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/worker.c b/src/worker.c
index 91f570b62..a432060e0 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -414,13 +414,12 @@ start_worker (struct rspamd_worker *worker)
ctx->ev_base = rspamd_prepare_worker (worker, "normal", accept_socket);
msec_to_tv (ctx->timeout, &ctx->io_tv);
-
- rspamd_map_watch (worker->srv->cfg, ctx->ev_base);
rspamd_symbols_cache_start_refresh (worker->srv->cfg->cache, ctx->ev_base);
ctx->resolver = dns_resolver_init (worker->srv->logger,
ctx->ev_base,
worker->srv->cfg);
+ rspamd_map_watch (worker->srv->cfg, ctx->ev_base, ctx->resolver);
rspamd_upstreams_library_config (worker->srv->cfg, ctx->cfg->ups_ctx,
ctx->ev_base, ctx->resolver->r);