diff --git a/src/system/kernel/thread.cpp b/src/system/kernel/thread.cpp index 8376684992..b8e6d2ac96 100644 --- a/src/system/kernel/thread.cpp +++ b/src/system/kernel/thread.cpp @@ -1029,6 +1029,7 @@ thread_create_thread(const ThreadCreationAttributes& attributes, bool kernel) thread->user_thread = NULL; threadLocker.Unlock(); + teamLocker.Unlock(); if (userThread != NULL) team_free_user_thread(team, userThread);