fix(posix): don't pthread_join the calling thread

This commit is contained in:
Julian Oes authored and Ramon Roche committed 2026-07-02 08:42:49 -07:00
1 parent 2c599bf5cf
commit 4a51266488
1 file changed
-1
-1
View File
@@ -305,7 +305,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);