]> Kevux Git Server - fll/commitdiff
Bugfix: main process doesn't always exit.
authorKevin Day <thekevinday@gmail.com>
Sun, 11 Apr 2021 23:00:09 +0000 (18:00 -0500)
committerKevin Day <thekevinday@gmail.com>
Sun, 11 Apr 2021 23:00:09 +0000 (18:00 -0500)
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

index ba392596e1684f3dabdc99a9a78da11c2f1cae19..7dace550dd14ec051bc4430e9a2339d2c9a71f1b 100644 (file)
@@ -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;
         }