diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-05-25 14:41:30 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-05-25 14:41:30 +0100 |
commit | 95070f959420a871dff813669f809c345993e5e9 (patch) | |
tree | 87259c4fabcec99ab9c4580126d6e3f08a685083 /src/lua/lua_common.h | |
parent | 9a6924f90aaeb6f693c83257c04208216a138ef7 (diff) | |
download | rspamd-95070f959420a871dff813669f809c345993e5e9.tar.gz rspamd-95070f959420a871dff813669f809c345993e5e9.zip |
[Fix] Fix an old issue with order of destruction race between redis pool and lua
Diffstat (limited to 'src/lua/lua_common.h')
-rw-r--r-- | src/lua/lua_common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h index b782b3d37..2ea51249d 100644 --- a/src/lua/lua_common.h +++ b/src/lua/lua_common.h @@ -648,6 +648,12 @@ bool rspamd_lua_universal_pcall (lua_State *L, gint cbref, const gchar* strloc, gint nret, const gchar *args, GError **err, ...); /** + * Returns true if lua is initialised + * @return + */ +bool rspamd_lua_is_initialised(void); + +/** * Wrapper for lua_geti from lua 5.3 * @param L * @param index |