From 8c80a6e3daf3bcdfe6fd5b250f4f2c418a1ae9fe Mon Sep 17 00:00:00 2001 From: nova Date: Thu, 14 May 2026 23:52:16 +0200 Subject: [PATCH] fix of an edgecase not unlocknig mutex --- threading.c | 1 + 1 file changed, 1 insertion(+) 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);