aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_tcp.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-12 17:29:15 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-12 17:29:15 +0100
commitc05c2b3b82b21c0cad3faf621a11ab9b250ec8e1 (patch)
tree8e67d1e24882ee2a9d2bc6b840ee69dd1e112d28 /src/lua/lua_tcp.c
parent52698bace7a7c18324f2adf5f1985d559330bab8 (diff)
downloadrspamd-c05c2b3b82b21c0cad3faf621a11ab9b250ec8e1.tar.gz
rspamd-c05c2b3b82b21c0cad3faf621a11ab9b250ec8e1.zip
[Fix] Fix more issues with watching of async events
Diffstat (limited to 'src/lua/lua_tcp.c')
-rw-r--r--src/lua/lua_tcp.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lua/lua_tcp.c b/src/lua/lua_tcp.c
index 85f294142..099fc6896 100644
--- a/src/lua/lua_tcp.c
+++ b/src/lua/lua_tcp.c
@@ -1133,10 +1133,7 @@ lua_tcp_register_event (struct lua_tcp_cbdata *cbd)
if (cbd->session) {
event_finalizer_t fin = IS_SYNC (cbd) ? lua_tcp_void_finalyser : lua_tcp_fin;
- cbd->async_ev = rspamd_session_add_event (cbd->session,
- fin,
- cbd,
- g_quark_from_static_string ("lua tcp"));
+ cbd->async_ev = rspamd_session_add_event (cbd->session, NULL, fin, cbd, g_quark_from_static_string ("lua tcp"));
if (!cbd->async_ev) {
return FALSE;