From 9235a9035b8d25562899c0574fc1b136f98fd249 Mon Sep 17 00:00:00 2001 From: Techjar Date: Sat, 3 Apr 2021 17:52:03 -0400 Subject: [PATCH] Core: Fix PauseAndLock segfaulting under certain circumstances This can happen if it's called before the core has fully initialized. --- Source/Core/Core/Core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/Core.cpp b/Source/Core/Core/Core.cpp index 0d14dec9e8..025af268de 100644 --- a/Source/Core/Core/Core.cpp +++ b/Source/Core/Core/Core.cpp @@ -750,7 +750,7 @@ void RequestRefreshInfo() static bool PauseAndLock(bool do_lock, bool unpause_on_unlock) { // WARNING: PauseAndLock is not fully threadsafe so is only valid on the Host Thread - if (!IsRunning()) + if (!IsRunningAndStarted()) return true; bool was_unpaused = true;