Fix a possible race on shutdown.

This commit is contained in:
Unknown W. Brackets committed 2013-10-12 02:08:00 -07:00
1 parent b0072cd38b
commit 90c49befd4
2 files changed
+14 -9

No files matched your search

+1 -1
View File
@@ -126,7 +126,7 @@ unsigned int MIPSDebugInterface::readMemory(unsigned int address)
bool MIPSDebugInterface::isAlive()
{
return PSP_IsInited();
return PSP_IsInited() && coreState != CORE_ERROR && coreState != CORE_POWERDOWN;
}
bool MIPSDebugInterface::isBreakpoint(unsigned int address)