VMManager: Fix brief unpause before shutdown

This commit is contained in:
Connor McLaughlin 2022-02-13 19:01:28 +10:00 committed by lightningterror
parent 22dfe05287
commit ddd5fc7bf3
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ void VMManager::SetState(VMState state)
SetTimerResolutionIncreased(state == VMState::Running);
s_state.store(state);
if (state == VMState::Paused || old_state == VMState::Paused)
if (state != VMState::Stopping && (state == VMState::Paused || old_state == VMState::Paused))
{
if (state == VMState::Paused)
{