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/fuzzy_check.c | |
parent | 537492c40116a8f38c209f7b36dacd0562504b44 (diff) | |
download | rspamd-f1e2f1acd45ffc6ae8f79bbba23d4734e588898f.tar.gz rspamd-f1e2f1acd45ffc6ae8f79bbba23d4734e588898f.zip |
Refactor events API.
Diffstat (limited to 'src/plugins/fuzzy_check.c')
-rw-r--r-- | src/plugins/fuzzy_check.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 498e1485e..ebaab2717 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -821,12 +821,12 @@ fuzzy_io_callback (gint fd, short what, void *arg) errno, strerror (errno)); rspamd_upstream_fail (session->server); - remove_normal_event (session->task->s, fuzzy_io_fin, session); + rspamd_session_remove_event (session->task->s, fuzzy_io_fin, session); } else { rspamd_upstream_ok (session->server); if (session->commands->len == 0) { - remove_normal_event (session->task->s, fuzzy_io_fin, session); + rspamd_session_remove_event (session->task->s, fuzzy_io_fin, session); } } } @@ -1114,7 +1114,7 @@ register_fuzzy_client_call (struct rspamd_task *task, session->server = selected; session->rule = rule; event_add (&session->ev, &session->tv); - register_async_event (task->s, + rspamd_session_add_event (task->s, fuzzy_io_fin, session, g_quark_from_static_string ("fuzzy check")); |