From ebb6183a2e7bedf6325d91afb002c9148f5ac9f0 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 22 Sep 2014 21:03:24 +0100 Subject: [PATCH] Fix issues with connection closing. --- src/controller.c | 2 ++ src/libserver/task.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5