diff --git a/executer/user/mcexec.c b/executer/user/mcexec.c index 738eab75..3979e357 100644 --- a/executer/user/mcexec.c +++ b/executer/user/mcexec.c @@ -1892,7 +1892,7 @@ join_all_threads() do { live_thread = 0; for (tp = thread_data; tp; tp = tp->next) { - if (tp->joined && tp->detached) + if (tp->joined || tp->detached) continue; live_thread = 1; pthread_join(tp->thread_id, NULL);