Forráskód Böngészése

Fix compilation of USE_LUA without USE_TIMERS

Signed-off-by: DL6ER <dl6er@dl6er.de>
DL6ER 2 éve
szülő
commit
23095a8d89
1 módosított fájl, 1 hozzáadás és 1 törlés
  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);