posix: you can't join yourself

This commit is contained in:
Julian Oes
2026-02-18 21:03:35 +13:00
parent 20669aba6f
commit a757a7c29d
-1
View File
@@ -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);