aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_redis.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_redis.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_redis.c')
-rw-r--r--src/lua/lua_redis.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/lua/lua_redis.c b/src/lua/lua_redis.c
index e18e507cb..d3eaa300a 100644
--- a/src/lua/lua_redis.c
+++ b/src/lua/lua_redis.c
@@ -1012,10 +1012,7 @@ lua_redis_make_request (lua_State *L)
if (ret == REDIS_OK) {
if (ud->s) {
- rspamd_session_add_event (ud->s,
- lua_redis_fin,
- sp_ud,
- g_quark_from_static_string ("lua redis"));
+ rspamd_session_add_event (ud->s, NULL, lua_redis_fin, sp_ud, g_quark_from_static_string ("lua redis"));
sp_ud->w = rspamd_session_get_watcher (ud->s);
rspamd_session_watcher_push (ud->s);
}
@@ -1382,10 +1379,7 @@ lua_redis_add_cmd (lua_State *L)
if (ret == REDIS_OK) {
if (ud->s) {
- rspamd_session_add_event (ud->s,
- lua_redis_fin,
- sp_ud,
- g_quark_from_static_string ("lua redis"));
+ rspamd_session_add_event (ud->s, NULL, lua_redis_fin, sp_ud, g_quark_from_static_string ("lua redis"));
sp_ud->w = rspamd_session_get_watcher (ud->s);
rspamd_session_watcher_push (ud->s);
}