From: Kevin Day Date: Sun, 11 Apr 2021 23:00:09 +0000 (-0500) Subject: Bugfix: main process doesn't always exit. X-Git-Tag: 0.5.3~57 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=ebaae1bca9cbf9af657ddb72182b464859f7fac1;p=fll 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. --- 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; }