aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_redis.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-05-05 11:37:43 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-05-05 11:37:43 +0100
commitaedcdfe854c351c7d441487a30d931acabc1ce82 (patch)
tree286d878204ec8a9d5455634577699d921b86d6b5 /src/lua/lua_redis.c
parent1df88256728426cf64f6a3e5f1a0219d1342e7df (diff)
downloadrspamd-aedcdfe854c351c7d441487a30d931acabc1ce82.tar.gz
rspamd-aedcdfe854c351c7d441487a30d931acabc1ce82.zip
[Minor] Allow forced termination of the suspended threads
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 b624fc43b..057a21c95 100644
--- a/src/lua/lua_redis.c
+++ b/src/lua/lua_redis.c
@@ -685,8 +685,8 @@ lua_redis_callback_sync (redisAsyncContext *ac, gpointer r, gpointer priv)
}
else {
/* We cannot resume the thread as the associated task has gone */
- lua_thread_pool_terminate_entry (ud->cfg->lua_thread_pool,
- ctx->thread);
+ lua_thread_pool_terminate_entry_full (ud->cfg->lua_thread_pool,
+ ctx->thread, G_STRLOC, true);
ctx->thread = NULL;
}
}