From 6617d1ced251af3b4301dc9c5778269e493407a2 Mon Sep 17 00:00:00 2001 From: Pengo Wray Date: Sun, 5 Mar 2023 03:46:10 +1100 Subject: [PATCH] avoid unnecessarily triggering STA COM thread check --- AudioSwitcher.AudioApi.CoreAudio/CoreAudioSession.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AudioSwitcher.AudioApi.CoreAudio/CoreAudioSession.cs b/AudioSwitcher.AudioApi.CoreAudio/CoreAudioSession.cs index 1b0f5d6..786b96e 100644 --- a/AudioSwitcher.AudioApi.CoreAudio/CoreAudioSession.cs +++ b/AudioSwitcher.AudioApi.CoreAudio/CoreAudioSession.cs @@ -125,7 +125,7 @@ public IObservable PeakValueChanged get { //only initialize the timer subscription when peak value is requested - if (MeterInformation != null && _timerSubscription == null) + if (_meterInformation != null && _timerSubscription == null) { //start a timer to poll for peak value changes _timerSubscription = PeakValueTimer.PeakValueTick.Subscribe(Timer_UpdatePeakValue);