mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-14 02:35:42 -04:00
CDROM: Don't allow deferred INT1 after Pause ACK
This commit is contained in:
parent
e499f9052a
commit
0517aef5bd
@ -1933,6 +1933,9 @@ void CDROM::ExecuteCommand(void*, TickCount ticks, TickCount ticks_late)
|
||||
}
|
||||
else
|
||||
{
|
||||
// Small window of time when another INT1 could sneak in, don't let it.
|
||||
ClearAsyncInterrupt();
|
||||
|
||||
// Stop reading.
|
||||
s_drive_state = DriveState::Idle;
|
||||
s_drive_event.Deactivate();
|
||||
@ -1951,6 +1954,7 @@ void CDROM::ExecuteCommand(void*, TickCount ticks, TickCount ticks_late)
|
||||
case Command::Stop:
|
||||
{
|
||||
const TickCount stop_time = GetTicksForStop(IsMotorOn());
|
||||
ClearAsyncInterrupt();
|
||||
ClearCommandSecondResponse();
|
||||
SendACKAndStat();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user