small thread fix

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3416 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY 2009-06-13 00:21:47 +00:00
parent 2f0c872cd2
commit f8a221dea2
1 changed files with 7 additions and 0 deletions

View File

@ -174,6 +174,13 @@ bool CEXIMemoryCard::IsPresent()
void CEXIMemoryCard::SetCS(int cs)
{
// So that memory card won't be invalidated during flushing
if(flushThread)
{
delete flushThread;
flushThread = NULL;
}
if (cs) // not-selected to selected
m_uPosition = 0;
else