Skip to content

Commit

Permalink
Fix monitor_thread
Browse files Browse the repository at this point in the history
  • Loading branch information
hassandraga committed Jun 26, 2024
1 parent b576b2f commit 9b79e73
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/webui.c
Original file line number Diff line number Diff line change
Expand Up @@ -7528,6 +7528,7 @@ static WEBUI_THREAD_SERVER_START {
#endif

// Folder monitor thread
bool monitor_created = false;
#ifdef _WIN32
HANDLE monitor_thread = NULL;
#else
Expand Down Expand Up @@ -7692,8 +7693,9 @@ static WEBUI_THREAD_SERVER_START {
);
#endif

if (_webui_core.config.folder_monitor && !monitor_thread) {
// Folder monitor thread
// Folder monitor thread
if (_webui_core.config.folder_monitor && !monitor_created) {
monitor_created = true;
_webui_monitor_arg_t* arg = (_webui_monitor_arg_t * ) _webui_malloc(sizeof(_webui_monitor_arg_t));
arg->win_num = win->window_number;
arg->path = win->server_root_path;
Expand Down

0 comments on commit 9b79e73

Please sign in to comment.