From: Vsevolod Stakhov Date: Tue, 14 Feb 2017 13:46:56 +0000 (+0000) Subject: [Fix] Do not stop symbols planning if async events are pending X-Git-Tag: 1.5.0~104 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a3255c5529cf57fb07ffb9d1b35bfc85168497d0;p=rspamd.git [Fix] Do not stop symbols planning if async events are pending Issue: #1425 --- 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 "