aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-06-12 10:27:56 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-06-12 10:44:51 +0100
commitafbf253dfec60164ab94f6003f6aa73e710cfbdd (patch)
treed3f4b39730e7d4e11c9dbea615d41da3b2808a20 /src
parent6e467d152108d6eb84a4dd63f689995c73443268 (diff)
downloadrspamd-afbf253dfec60164ab94f6003f6aa73e710cfbdd.tar.gz
rspamd-afbf253dfec60164ab94f6003f6aa73e710cfbdd.zip
[Minor] Check task for being processed before return
Diffstat (limited to 'src')
-rw-r--r--src/rspamd_proxy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c
index 79065d1c7..fdad35f2d 100644
--- a/src/rspamd_proxy.c
+++ b/src/rspamd_proxy.c
@@ -1649,6 +1649,8 @@ rspamd_proxy_self_scan (struct rspamd_proxy_session *session)
session->master_conn->task = task;
rspamd_task_process (task, RSPAMD_TASK_PROCESS_ALL);
+ rspamd_session_pending (task->s);
+
return TRUE;
}