From: Vsevolod Stakhov Date: Mon, 12 Jun 2017 09:27:56 +0000 (+0100) Subject: [Minor] Check task for being processed before return X-Git-Tag: 1.6.0~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=afbf253dfec60164ab94f6003f6aa73e710cfbdd;p=rspamd.git [Minor] Check task for being processed before return --- 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; }