aboutsummaryrefslogtreecommitdiffstats
path: root/src/worker.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-11-18 14:55:50 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-11-18 14:55:50 +0000
commiteb976e4166e51854f056fd84be68b77d6c616fcd (patch)
treee4c7bfca2ca0e8ed7e2a7221a2e59bd1423e235d /src/worker.c
parentc784852f1c153650343c1feebe6d2a1bda3c5c39 (diff)
downloadrspamd-eb976e4166e51854f056fd84be68b77d6c616fcd.tar.gz
rspamd-eb976e4166e51854f056fd84be68b77d6c616fcd.zip
Fix ping command.
Diffstat (limited to 'src/worker.c')
-rw-r--r--src/worker.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/worker.c b/src/worker.c
index 4bca03f2d..aff9c1b00 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -109,6 +109,11 @@ rspamd_worker_body_handler (struct rspamd_http_connection *conn,
ctx = task->worker->ctx;
+ if (!rspamd_protocol_handle_request (task, msg)) {
+ task->state = WRITE_REPLY;
+ return 0;
+ }
+
if (task->cmd == CMD_PING) {
task->state = WRITE_REPLY;
return 0;
@@ -122,11 +127,6 @@ rspamd_worker_body_handler (struct rspamd_http_connection *conn,
return 0;
}
- if (!rspamd_protocol_handle_request (task, msg)) {
- task->state = WRITE_REPLY;
- return 0;
- }
-
if (!rspamd_task_process (task, msg, ctx->classify_pool, TRUE)) {
task->state = WRITE_REPLY;
}