From a757a7c29d17ede35e898561e8b39a176f1f5f0d Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Wed, 18 Feb 2026 13:12:56 +1300 Subject: [PATCH] posix: you can't join yourself --- platforms/posix/src/px4/common/tasks.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/platforms/posix/src/px4/common/tasks.cpp b/platforms/posix/src/px4/common/tasks.cpp index dba1e3b7b1..373bc1911e 100644 --- a/platforms/posix/src/px4/common/tasks.cpp +++ b/platforms/posix/src/px4/common/tasks.cpp @@ -306,7 +306,6 @@ int px4_task_delete(px4_task_t id) // If current thread then exit, otherwise cancel if (pthread_self() == pid) { - pthread_join(pid, nullptr); taskmap[id].isused = false; pthread_mutex_unlock(&task_mutex); pthread_exit(nullptr);