1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-27 02:20:05 +00:00

CoreAudioDevice: Fixed potential race condition

This commit is contained in:
tpoole 2017-06-12 10:20:05 +01:00
parent 693fde9f21
commit bfd59e5f87

View file

@ -2037,7 +2037,7 @@ private:
static OSStatus hardwareListenerProc (AudioDeviceID, UInt32, const AudioObjectPropertyAddress*, void* clientData)
{
static_cast<CoreAudioIODeviceType*> (clientData)->audioDeviceListChanged();
static_cast<CoreAudioIODeviceType*> (clientData)->triggerAsyncAudioDeviceListChange();
return noErr;
}