VMManager: Fix brief unpause before shutdown

This commit is contained in:
Connor McLaughlin authored and lightningterror committed 2022-03-07 14:14:04 +01:00
1 parent 22dfe05287
commit ddd5fc7bf3
1 file changed
+1 -1
+1 -1
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)
{