aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_tcp.c')
-rw-r--r--src/lua/lua_tcp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lua/lua_tcp.c b/src/lua/lua_tcp.c
index f15e25399..37f535850 100644
--- a/src/lua/lua_tcp.c
+++ b/src/lua/lua_tcp.c
@@ -1231,7 +1231,13 @@ 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, M);
+ if (cbd->item) {
+ cbd->async_ev = rspamd_session_add_event_full (cbd->session, fin, cbd, M,
+ rspamd_symcache_item_name (cbd->item));
+ }
+ else {
+ cbd->async_ev = rspamd_session_add_event (cbd->session, fin, cbd, M);
+ }
if (!cbd->async_ev) {
return FALSE;