]> 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 ba39259..7dace55 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;
         }