CDROM: Fix crash when changing readahead sectors

This commit is contained in:
Connor McLaughlin 2022-08-01 19:34:52 +10:00
parent 17e554498f
commit e1383d15aa
1 changed files with 2 additions and 1 deletions

View File

@ -438,7 +438,8 @@ void CDROM::SetReadaheadSectors(u32 readahead_sectors)
else
m_reader.StopThread();
m_reader.QueueReadSector(m_requested_lba);
if (HasMedia())
m_reader.QueueReadSector(m_requested_lba);
}
void CDROM::CPUClockChanged()