aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_redis.c
diff options
context:
space:
mode:
authorMikhail Galanin <mgalanin@mimecast.com>2018-09-10 17:36:28 +0100
committerMikhail Galanin <mgalanin@mimecast.com>2018-09-10 17:36:28 +0100
commit2ee5f7e4cdadb324aa16af67491f56a1f6fdb412 (patch)
treed6139da3277b7e5383f5ebb52c50d86223bed1f0 /src/lua/lua_redis.c
parent942473383448b74c758ac521c7492f222c00709f (diff)
downloadrspamd-2ee5f7e4cdadb324aa16af67491f56a1f6fdb412.tar.gz
rspamd-2ee5f7e4cdadb324aa16af67491f56a1f6fdb412.zip
[Minor] rspamd_session_is_destroying -> rspamd_session_blocked
Diffstat (limited to 'src/lua/lua_redis.c')
-rw-r--r--src/lua/lua_redis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_redis.c b/src/lua/lua_redis.c
index 1c407b2fd..e18e507cb 100644
--- a/src/lua/lua_redis.c
+++ b/src/lua/lua_redis.c
@@ -876,7 +876,7 @@ rspamd_lua_redis_prepare_connection (lua_State *L, gint *pcbref, gboolean is_asy
lua_pop (L, 1); /* table */
- if (session && rspamd_session_is_destroying (session)) {
+ if (session && rspamd_session_blocked (session)) {
msg_err_task_check ("Session is being destroying");
ret = FALSE;
}
@@ -1356,7 +1356,7 @@ lua_redis_add_cmd (lua_State *L)
LL_PREPEND (sp_ud->c->specific, sp_ud);
- if (ud->s && rspamd_session_is_destroying (ud->s)) {
+ if (ud->s && rspamd_session_blocked (ud->s)) {
lua_pushboolean (L, 0);
lua_pushstring (L, "session is terminating");