From a3255c5529cf57fb07ffb9d1b35bfc85168497d0 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 14 Feb 2017 13:46:56 +0000 Subject: [PATCH] [Fix] Do not stop symbols planning if async events are pending Issue: #1425 --- src/libserver/symbols_cache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c index fe3e9fb4f..03b60a2c2 100644 --- a/src/libserver/symbols_cache.c +++ b/src/libserver/symbols_cache.c @@ -1652,7 +1652,8 @@ rspamd_symbols_cache_process_symbols (struct rspamd_task * task, for (i = 0; i < (gint)checkpoint->version; i ++) { item = g_ptr_array_index (checkpoint->order->d, i); - if (!(item->type & SYMBOL_TYPE_FINE)) { + if (!(item->type & SYMBOL_TYPE_FINE) && + rspamd_session_events_pending (task->s) == 0) { if (rspamd_symbols_cache_metric_limit (task, checkpoint)) { msg_info_task ("<%s> has already scored more than %.2f, so do " "not " -- 2.39.5