1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-11 23:54:18 +00:00

Windows: Added a more thread safe fix for the Studio One hang

This commit is contained in:
Tom Poole 2018-12-07 09:43:29 +00:00
parent d19c410713
commit b7fbdd7009

View file

@ -1246,7 +1246,7 @@ void AudioProcessorGraph::prepareToPlay (double sampleRate, int estimatedSamples
setRateAndBufferSizeDetails (sampleRate, estimatedSamplesPerBlock);
clearRenderingSequence();
if (isNonRealtime())
if (MessageManager::getInstance()->isThisTheMessageThread())
handleAsyncUpdate();
else
triggerAsyncUpdate();