From ebaae1bca9cbf9af657ddb72182b464859f7fac1 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 11 Apr 2021 18:00:09 -0500 Subject: [PATCH] Bugfix: main process doesn't always exit. Remove stale lock and unlock that was used for testing or experimentally. This was causing it to wait for something that would never release the lock because it was closed resulting in a deadlock and the main process hanging on exit. --- level_3/controller/c/private-common.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/level_3/controller/c/private-common.c b/level_3/controller/c/private-common.c index ba39259..7dace55 100644 --- a/level_3/controller/c/private-common.c +++ b/level_3/controller/c/private-common.c @@ -119,9 +119,6 @@ extern "C" { if (F_status_is_error(status)) { if (F_status_set_fine(status) == F_busy) { - f_thread_mutex_lock(mutex); - f_thread_mutex_unlock(mutex); - if (f_thread_mutex_delete(mutex) == F_none) { mutex = 0; } -- 1.8.3.1