diff --git a/src/scripting.c b/src/scripting.c index 11adcf282..1da6f763f 100644 --- a/src/scripting.c +++ b/src/scripting.c @@ -900,7 +900,6 @@ void scriptingInit(int setup) { server.lua_caller = NULL; server.lua_timedout = 0; server.lua_always_replicate_commands = 0; /* Only DEBUG can change it.*/ - server.lua_time_limit = LUA_SCRIPT_TIME_LIMIT; ldbInit(); } diff --git a/src/server.c b/src/server.c index 8f5a0911b..db853b836 100644 --- a/src/server.c +++ b/src/server.c @@ -1412,6 +1412,7 @@ void initServerConfig(void) { server.lazyfree_lazy_expire = CONFIG_DEFAULT_LAZYFREE_LAZY_EXPIRE; server.lazyfree_lazy_server_del = CONFIG_DEFAULT_LAZYFREE_LAZY_SERVER_DEL; server.always_show_logo = CONFIG_DEFAULT_ALWAYS_SHOW_LOGO; + server.lua_time_limit = LUA_SCRIPT_TIME_LIMIT; server.lruclock = getLRUClock(); resetServerSaveParams();