diff options
Diffstat (limited to 'src/lua/lua_http.c')
-rw-r--r-- | src/lua/lua_http.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c index 1baef5ed4..cec631402 100644 --- a/src/lua/lua_http.c +++ b/src/lua/lua_http.c @@ -122,7 +122,7 @@ static void lua_http_maybe_free (struct lua_http_cbdata *cbd) { if (cbd->session) { - remove_normal_event (cbd->session, lua_http_fin, cbd); + rspamd_session_remove_event (cbd->session, lua_http_fin, cbd); } else { lua_http_fin (cbd); @@ -438,7 +438,7 @@ lua_http_request (lua_State *L) cbd->fd = -1; if (session) { cbd->session = session; - register_async_event (session, + rspamd_session_add_event (session, (event_finalizer_t)lua_http_fin, cbd, g_quark_from_static_string ("lua http")); |