aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/surbl.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-26 14:00:03 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-26 14:00:03 +0100
commitf1e2f1acd45ffc6ae8f79bbba23d4734e588898f (patch)
treeecbecaa5f103192933407a24d3668a39a0744545 /src/plugins/surbl.c
parent537492c40116a8f38c209f7b36dacd0562504b44 (diff)
downloadrspamd-f1e2f1acd45ffc6ae8f79bbba23d4734e588898f.tar.gz
rspamd-f1e2f1acd45ffc6ae8f79bbba23d4734e588898f.zip
Refactor events API.
Diffstat (limited to 'src/plugins/surbl.c')
-rw-r--r--src/plugins/surbl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c
index 39dfc2894..39a6e2974 100644
--- a/src/plugins/surbl.c
+++ b/src/plugins/surbl.c
@@ -937,7 +937,7 @@ surbl_redirector_error (struct rspamd_http_connection *conn,
rspamd_inet_address_to_string (rspamd_upstream_addr (param->redirector)),
err);
rspamd_upstream_fail (param->redirector);
- remove_normal_event (param->task->s, free_redirector_session,
+ rspamd_session_remove_event (param->task->s, free_redirector_session,
param);
}
@@ -981,7 +981,7 @@ surbl_redirector_finish (struct rspamd_http_connection *conn,
}
rspamd_upstream_ok (param->redirector);
- remove_normal_event (param->task->s, free_redirector_session,
+ rspamd_session_remove_event (param->task->s, free_redirector_session,
param);
return 0;
@@ -1032,7 +1032,7 @@ register_redirector_call (struct rspamd_url *url, struct rspamd_task *task,
timeout = rspamd_mempool_alloc (task->task_pool, sizeof (struct timeval));
double_to_tv (surbl_module_ctx->read_timeout, timeout);
- register_async_event (task->s,
+ rspamd_session_add_event (task->s,
free_redirector_session,
param,
g_quark_from_static_string ("surbl"));