Merge pull request #482 from LegendOfDragoon/master

Fix threading problem with AiUpdate
This commit is contained in:
zilmar 2015-05-26 15:09:43 +10:00
commit f713c2081b
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ bool CAudioPlugin::Initiate(CN64System * System, CMainGui * RenderWindow)
if (System != NULL) if (System != NULL)
{ {
if (AiUpdate) if (AiUpdate && !m_hAudioThread)
{ {
m_hAudioThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)AudioThread, (LPVOID)this, 0, &ThreadID); m_hAudioThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)AudioThread, (LPVOID)this, 0, &ThreadID);
} }