mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-17 23:47:40 +00:00
Oops, flush from queue before locking.
Added this last and clearly didn't test it carefully. Fixes #8631.
This commit is contained in:
parent
6f30401800
commit
cc4e7c4b10
@ -763,13 +763,14 @@ again:
|
||||
info = new GameInfo();
|
||||
}
|
||||
|
||||
if (info->IsWorking()) {
|
||||
// Uh oh, it's currently in process. It could mark pending = false with the wrong wantFlags.
|
||||
// Let's wait it out, then queue.
|
||||
WaitUntilDone(info);
|
||||
}
|
||||
|
||||
{
|
||||
lock_guard lock(info->lock);
|
||||
if (info->IsWorking()) {
|
||||
// Uh oh, it's currently in process. It could mark pending = false with the wrong wantFlags.
|
||||
// Let's wait it out, then queue.
|
||||
WaitUntilDone(info);
|
||||
}
|
||||
info->wantFlags |= wantFlags;
|
||||
info->pending = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user