Fix occasional deadlock when stopping FIFO playback

This commit is contained in:
Pokechu22 2021-02-12 18:50:33 -08:00
parent a557230dea
commit ef75381a84

View File

@ -384,6 +384,8 @@ void FifoPlayer::WriteFifo(const u8* data, u32 start, u32 end)
{
while (IsHighWatermarkSet())
{
if (CPU::GetState() != CPU::State::Running)
break;
CoreTiming::Idle();
CoreTiming::Advance();
}