Core: Fix PauseAndLock segfaulting under certain circumstances

This can happen if it's called before the core has fully initialized.
This commit is contained in:
Techjar 2021-04-03 17:52:03 -04:00
parent 6d1eb6ae5a
commit 9235a9035b
1 changed files with 1 additions and 1 deletions

View File

@ -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;