diff --git a/threading.c b/threading.c index 41652f2..e08ec94 100644 --- a/threading.c +++ b/threading.c @@ -65,6 +65,7 @@ void *thread_mid(){ if (global_path == NULL) { mid_dir.current_file = NULL; mid_dir.file_count = 0; + pthread_mutex_unlock(&mutex_mid); continue; } char *path = malloc(strlen(global_path)+1);