From a5b48a05a94d178c342bbad69a330addb518d148 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 13 Feb 2012 21:51:10 +0400 Subject: * More things to be thread-safe: - pool allocator is now thread-safe - lua subsystem now holds lock to avoid lua stack corruption - events subsystem now using conditional variables to wait for async_threads - insert_result is thread-safe now --- src/controller.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/controller.c') diff --git a/src/controller.c b/src/controller.c index b9ec3677c..ddac27930 100644 --- a/src/controller.c +++ b/src/controller.c @@ -846,9 +846,9 @@ process_normal_command (const gchar *line) } /* - * Called if all filters are processed + * Called if all filters are processed, non-threaded and simple version */ -static void +static gboolean fin_learn_task (void *arg) { struct worker_task *task = (struct worker_task *) arg; @@ -870,6 +870,8 @@ fin_learn_task (void *arg) rspamd_dispatcher_restore (task->dispatcher); } } + + return TRUE; } /* -- cgit v1.2.3