Browse Source

Merge pull request #1152 from DL6ER/fix/lua_timers

Fix compilation of USE_LUA without USE_TIMERS
bel2125 2 năm trước cách đây
mục cha
commit
11fbd20f1e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/mod_lua.inl

+ 1 - 1
src/mod_lua.inl

@@ -2905,8 +2905,8 @@ prepare_lua_environment(struct mg_context *ctx,
 	    || (lua_env_type == LUA_ENV_TYPE_BACKGROUND)) {
 		reg_function(L, "set_timeout", lwebsocket_set_timeout);
 		reg_function(L, "set_interval", lwebsocket_set_interval);
-#endif
 	}
+#endif
 
 	reg_conn_function(L, "get_mime_type", lsp_get_mime_type, conn);
 	reg_conn_function(L, "get_option", lsp_get_option, conn);