From 255f457c0bf0dd7773495ceb04f5df801956d4e5 Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 10 Sep 2020 15:30:04 +0100 Subject: [PATCH] Fix crash accessing non-running thread --- qrenderdoc/Code/ReplayManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrenderdoc/Code/ReplayManager.cpp b/qrenderdoc/Code/ReplayManager.cpp index b6b7ac96e..627cb5b11 100644 --- a/qrenderdoc/Code/ReplayManager.cpp +++ b/qrenderdoc/Code/ReplayManager.cpp @@ -342,7 +342,7 @@ void ReplayManager::DisconnectFromRemoteServer() QMutexLocker autolock(&m_RemoteLock); // give the remote to the thread to shut down since the lifetime is tied to the replay // controller it has. - if(m_Thread->isRunning()) + if(IsRunning()) { m_OrphanedRemote = m_Remote; }