From: Vsevolod Stakhov Date: Mon, 22 Sep 2014 20:03:24 +0000 (+0100) Subject: Fix issues with connection closing. X-Git-Tag: 0.7.1~19 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ebb6183a2e7bedf6325d91afb002c9148f5ac9f0;p=rspamd.git Fix issues with connection closing. --- diff --git a/src/controller.c b/src/controller.c index d27a2d1a1..e135ecdea 100644 --- a/src/controller.c +++ b/src/controller.c @@ -843,6 +843,7 @@ rspamd_controller_handle_learn_common ( session->task = task; session->cl = cl; session->is_spam = is_spam; + check_session_pending (task->s); return 0; } @@ -930,6 +931,7 @@ rspamd_controller_handle_scan (struct rspamd_http_connection_entry *conn_ent, } session->task = task; + check_session_pending (task->s); return 0; } diff --git a/src/libserver/task.c b/src/libserver/task.c index 8eb0c7932..e03790f7b 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -344,8 +344,6 @@ rspamd_task_process (struct rspamd_task *task, task->state = WAIT_PRE_FILTER; } - check_session_pending (task->s); - return TRUE; }