From 44fac61f09abfb39962eda081859a434f9a34b82 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 18 May 2015 13:22:18 +0100 Subject: [PATCH] Fix error on spawning unique workers. Issue: #282 Reported by: @moisseev --- src/main.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main.c b/src/main.c index eb90be09e..5f34c1055 100644 --- a/src/main.c +++ b/src/main.c @@ -683,12 +683,10 @@ spawn_workers (struct rspamd_main *rspamd) if (listen_ok) { if (cf->worker->unique) { if (cf->count > 1) { - msg_err ("cannot spawn more than 1 %s worker, so spawn one", + msg_warn ("cannot spawn more than 1 %s worker, so spawn one", cf->worker->name); } - else { - fork_worker (rspamd, cf); - } + fork_worker (rspamd, cf); } else if (cf->worker->threaded) { fork_worker (rspamd, cf); -- 2.39.5