File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -302,6 +302,10 @@ void LLWebRTCVoiceClient::stopTimer()
302
302
{
303
303
if (mIsTimerActive )
304
304
{
305
+ LLMuteList::instanceExists ();
306
+ {
307
+ LLMuteList::getInstance ()->removeObserver (this );
308
+ }
305
309
mIsTimerActive = false ;
306
310
LL::Timers::instance ().cancel (mVoiceTimerHandle );
307
311
}
@@ -470,13 +474,6 @@ void LLWebRTCVoiceClient::connectionTimer()
470
474
LL_PROFILE_ZONE_SCOPED_CATEGORY_VOICE;
471
475
try
472
476
{
473
- // TODO: Doing some measurement and calculation here,
474
- // we could reduce the timeout to take into account the
475
- // time spent on the previous loop to have the loop
476
- // cycle at exactly 100ms, instead of 100ms + loop
477
- // execution time.
478
- // Could help with voice updates making for smoother
479
- // voice when we're busy.
480
477
bool voiceEnabled = mVoiceEnabled ;
481
478
482
479
if (!isAgentAvatarValid ())
@@ -1577,7 +1574,6 @@ void LLWebRTCVoiceClient::setVoiceEnabled(bool enabled)
1577
1574
LL_DEBUGS (" Voice" ) << " Starting" << LL_ENDL;
1578
1575
mIsTimerActive = true ;
1579
1576
LLMuteList::getInstance ()->addObserver (this );
1580
- const F32 SECS_BETWEEN_REQUESTS = 0 .5f ;
1581
1577
mVoiceTimerHandle = LL::Timers::instance ().scheduleEvery ([this ]() { connectionTimer (); return false ; }, UPDATE_THROTTLE_SECONDS);
1582
1578
}
1583
1579
else
You can’t perform that action at this time.
0 commit comments