diff options
Diffstat (limited to 'src/worker.c')
-rw-r--r-- | src/worker.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/worker.c b/src/worker.c index 3d9c7dabe..61a40d25b 100644 --- a/src/worker.c +++ b/src/worker.c @@ -147,6 +147,9 @@ rspamd_worker_finish_handler (struct rspamd_http_connection *conn, rspamd_inet_address_to_string (task->client_addr)); rspamd_session_destroy (task->s); } + else if (task->processed_stages & RSPAMD_TASK_STAGE_DONE) { + rspamd_session_pending (task->s); + } return 0; } |