Merge pull request #9623 from Techjar/pauseandlock-fix

Core: Fix PauseAndLock segfaulting under certain circumstances
This commit is contained in:
Léo Lam 2021-04-06 12:45:35 +02:00 committed by GitHub
commit ac250f7c20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;