From c2370c598eb06bad088c46bcd6ca618d25cecf8c Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Tue, 10 Mar 2020 00:09:27 +1000 Subject: [PATCH] CDROM: Don't crash when stopping with no media Fixes #76. --- src/core/cdrom.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/core/cdrom.cpp b/src/core/cdrom.cpp index 294c58f44..8c9ac41e8 100644 --- a/src/core/cdrom.cpp +++ b/src/core/cdrom.cpp @@ -1239,8 +1239,6 @@ void CDROM::DoStopComplete() m_secondary_status.motor_on = false; m_sector_buffer.clear(); - m_reader.QueueReadSector(0); - m_async_response_fifo.Clear(); m_async_response_fifo.Push(m_secondary_status.bits); SetAsyncInterrupt(Interrupt::Complete);