diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-22 21:03:24 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-22 21:03:24 +0100 |
commit | ebb6183a2e7bedf6325d91afb002c9148f5ac9f0 (patch) | |
tree | 5a9cc372adb0452d65e043d4da554263100e4195 /src | |
parent | fcbf12d1ac04074bb148104d3485148645982328 (diff) | |
download | rspamd-ebb6183a2e7bedf6325d91afb002c9148f5ac9f0.tar.gz rspamd-ebb6183a2e7bedf6325d91afb002c9148f5ac9f0.zip |
Fix issues with connection closing.
Diffstat (limited to 'src')
-rw-r--r-- | src/controller.c | 2 | ||||
-rw-r--r-- | 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; } |