fix of an edgecase not unlocknig mutex

This commit is contained in:
nova
2026-05-14 23:52:16 +02:00
parent 1aa66c82fb
commit 8c80a6e3da

View File

@@ -65,6 +65,7 @@ void *thread_mid(){
if (global_path == NULL) { if (global_path == NULL) {
mid_dir.current_file = NULL; mid_dir.current_file = NULL;
mid_dir.file_count = 0; mid_dir.file_count = 0;
pthread_mutex_unlock(&mutex_mid);
continue; continue;
} }
char *path = malloc(strlen(global_path)+1); char *path = malloc(strlen(global_path)+1);