mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-03-06 14:27:44 +00:00
CDROM: Fix crash when changing readahead sectors
This commit is contained in:
parent
17e554498f
commit
e1383d15aa
|
@ -438,6 +438,7 @@ void CDROM::SetReadaheadSectors(u32 readahead_sectors)
|
||||||
else
|
else
|
||||||
m_reader.StopThread();
|
m_reader.StopThread();
|
||||||
|
|
||||||
|
if (HasMedia())
|
||||||
m_reader.QueueReadSector(m_requested_lba);
|
m_reader.QueueReadSector(m_requested_lba);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue