Skip to content

Commit

Permalink
Merge pull request #63 from pengowray/master
Browse files Browse the repository at this point in the history
avoid unnecessarily triggering STA COM thread check
  • Loading branch information
xenolightning authored May 6, 2023
2 parents efe4951 + 6617d1c commit 27d4bf5
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 27d4bf5

Please sign in to comment.