diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-26 14:00:03 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-26 14:00:03 +0100 |
commit | f1e2f1acd45ffc6ae8f79bbba23d4734e588898f (patch) | |
tree | ecbecaa5f103192933407a24d3668a39a0744545 /src/plugins/surbl.c | |
parent | 537492c40116a8f38c209f7b36dacd0562504b44 (diff) | |
download | rspamd-f1e2f1acd45ffc6ae8f79bbba23d4734e588898f.tar.gz rspamd-f1e2f1acd45ffc6ae8f79bbba23d4734e588898f.zip |
Refactor events API.
Diffstat (limited to 'src/plugins/surbl.c')
-rw-r--r-- | src/plugins/surbl.c | 6 |
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")); |