aboutsummaryrefslogtreecommitdiffstats
path: root/src/worker.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-01-20 16:05:18 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-01-20 16:05:18 +0000
commit3951e4e858d891993c2d0f3fc317a3b9026269b3 (patch)
tree56a31b58a8f185cc527293e1233eb89f4711af75 /src/worker.c
parent0b7e2390bfb711499cab3511d7ff51a19c17369a (diff)
downloadrspamd-3951e4e858d891993c2d0f3fc317a3b9026269b3.tar.gz
rspamd-3951e4e858d891993c2d0f3fc317a3b9026269b3.zip
Implement refcount for http connection.
Diffstat (limited to 'src/worker.c')
-rw-r--r--src/worker.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/worker.c b/src/worker.c
index fc1d7a904..15b8ec62f 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -382,7 +382,7 @@ rspamd_worker_error_handler (struct rspamd_http_connection *conn, GError *err)
}
}
-static void
+static gint
rspamd_worker_finish_handler (struct rspamd_http_connection *conn,
struct rspamd_http_message *msg)
{
@@ -400,6 +400,8 @@ rspamd_worker_finish_handler (struct rspamd_http_connection *conn,
task->s->wanna_die = TRUE;
check_session_pending (task->s);
}
+
+ return 0;
}
/*