File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -567,7 +567,7 @@ static bool _webui_set_root_folder(_webui_window_t* win, const char* path);
567567static const char * _webui_generate_js_bridge (_webui_window_t * win , struct mg_connection * client );
568568static void _webui_free_mem (void * ptr );
569569static bool _webui_file_exist_mg (_webui_window_t * win , struct mg_connection * client );
570- static bool _webui_is_mg_client_valid (_webui_window_t * win , struct mg_connection * client );
570+ static bool _webui_is_mg_client_valid (_webui_window_t * win , const struct mg_connection * client );
571571static bool _webui_file_exist (const char * path );
572572static void _webui_free_all_mem (void );
573573static bool _webui_show_window (_webui_window_t * win , struct mg_connection * client ,
@@ -4843,7 +4843,7 @@ static size_t _webui_strlen(const char* s) {
48434843 return length ;
48444844}
48454845
4846- static bool _webui_is_mg_client_valid (_webui_window_t * win , struct mg_connection * client ) {
4846+ static bool _webui_is_mg_client_valid (_webui_window_t * win , const struct mg_connection * client ) {
48474847 // The `mg_get_xxx()` functions may crash if the client is not valid.
48484848 // So we need to check if the server is still running. Otherwise,
48494849 // we consider the client is freed and invalid.
You can’t perform that action at this time.
0 commit comments