From fbf14aa0b0497d6707c7dd780376d81e4a1a7714 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 17 Jan 2020 12:39:49 +0000 Subject: [PATCH] [Minor] Reset slow flag on checks pause --- src/libserver/rspamd_symcache.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/libserver/rspamd_symcache.c b/src/libserver/rspamd_symcache.c index 212ae76e7..7a9e89c42 100644 --- a/src/libserver/rspamd_symcache.c +++ b/src/libserver/rspamd_symcache.c @@ -2075,6 +2075,8 @@ rspamd_symcache_process_symbols (struct rspamd_task *task, if (checkpoint->has_slow) { /* Delay */ + checkpoint->has_slow = FALSE; + return FALSE; } /* Check priorities */ @@ -2118,6 +2120,8 @@ rspamd_symcache_process_symbols (struct rspamd_task *task, /* Check priorities */ if (checkpoint->has_slow) { /* Delay */ + checkpoint->has_slow = FALSE; + return FALSE; } @@ -2176,6 +2180,8 @@ rspamd_symcache_process_symbols (struct rspamd_task *task, if (checkpoint->has_slow) { /* Delay */ + checkpoint->has_slow = FALSE; + return FALSE; } } @@ -2214,6 +2220,8 @@ rspamd_symcache_process_symbols (struct rspamd_task *task, if (checkpoint->has_slow) { /* Delay */ + checkpoint->has_slow = FALSE; + return FALSE; } @@ -2252,6 +2260,8 @@ rspamd_symcache_process_symbols (struct rspamd_task *task, /* Check priorities */ if (checkpoint->has_slow) { /* Delay */ + checkpoint->has_slow = FALSE; + return FALSE; } -- 2.39.5