mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 19:15:46 +00:00
Fix crash caused by 2238.
This commit is contained in:
parent
5228d3bf7b
commit
18ca210bb7
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue