summaryrefslogtreecommitdiff
path: root/src/script_lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/script_lua.c')
-rw-r--r--src/script_lua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script_lua.c b/src/script_lua.c
index 76e9eb7ad..d7332cf86 100644
--- a/src/script_lua.c
+++ b/src/script_lua.c
@@ -1363,7 +1363,7 @@ void luaCallFunction(scriptRunCtx* run_ctx, lua_State *lua, robj** keys, size_t
* each time the Lua hook is invoked. */
luaSaveOnRegistry(lua, REGISTRY_RUN_CTX_NAME, run_ctx);
- if (server.script_time_limit > 0 && !debug_enabled) {
+ if (server.busy_reply_threshold > 0 && !debug_enabled) {
lua_sethook(lua,luaMaskCountHook,LUA_MASKCOUNT,100000);
delhook = 1;
} else if (debug_enabled) {