Skip to content
Snippets Groups Projects
Commit 8a320a6e authored by Fernando Sahmkow's avatar Fernando Sahmkow
Browse files

Fix crash caused by 2238.

parent 746167f1
No related branches found
No related tags found
No related merge requests found
......@@ -314,8 +314,9 @@ void Thread::UpdatePriority() {
}
// Ensure that the thread is within the correct location in the waiting list.
auto old_owner = lock_owner;
lock_owner->RemoveMutexWaiter(this);
lock_owner->AddMutexWaiter(this);
old_owner->AddMutexWaiter(this);
// Recursively update the priority of the thread that depends on the priority of this one.
lock_owner->UpdatePriority();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment