]> source.dussan.org Git - rspamd.git/commitdiff
Fix error on spawning unique workers.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 18 May 2015 12:22:18 +0000 (13:22 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 18 May 2015 12:22:18 +0000 (13:22 +0100)
Issue: #282
Reported by: @moisseev

src/main.c

index eb90be09e5117c8fa43ad0f96357b16ac541e468..5f34c105556a768b4f514ae72f2ce169a3d09312 100644 (file)
@@ -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);