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/lua/lua_tcp.c | |
parent | 537492c40116a8f38c209f7b36dacd0562504b44 (diff) | |
download | rspamd-f1e2f1acd45ffc6ae8f79bbba23d4734e588898f.tar.gz rspamd-f1e2f1acd45ffc6ae8f79bbba23d4734e588898f.zip |
Refactor events API.
Diffstat (limited to 'src/lua/lua_tcp.c')
-rw-r--r-- | src/lua/lua_tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_tcp.c b/src/lua/lua_tcp.c index 4cff7d0cc..fadb7d93b 100644 --- a/src/lua/lua_tcp.c +++ b/src/lua/lua_tcp.c @@ -120,7 +120,7 @@ static void lua_tcp_maybe_free (struct lua_tcp_cbdata *cbd) { if (cbd->session) { - remove_normal_event (cbd->session, lua_tcp_fin, cbd); + rspamd_session_remove_event (cbd->session, lua_tcp_fin, cbd); } else { lua_tcp_fin (cbd); @@ -593,7 +593,7 @@ lua_tcp_request (lua_State *L) if (session) { cbd->session = session; - register_async_event (session, + rspamd_session_add_event (session, (event_finalizer_t)lua_tcp_fin, cbd, g_quark_from_static_string ("lua tcp")); |