Skip to content

Commit

Permalink
avoid unnecessarily triggering STA COM thread check
Browse files Browse the repository at this point in the history
  • Loading branch information
pengowray committed Mar 4, 2023
1 parent efe4951 commit 6617d1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AudioSwitcher.AudioApi.CoreAudio/CoreAudioSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public IObservable<SessionPeakValueChangedArgs> 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);
Expand Down

0 comments on commit 6617d1c

Please sign in to comment.