Fix the issue where mic gets left on after leaving a voice call

This commit is contained in:
Inusaito Sayori
2013-08-02 16:54:36 -04:00
parent d7ac52afd7
commit 35a99acdaf

View File

@@ -279,7 +279,7 @@ void LLVoiceChannel::deactivate()
LLVoiceClient::getInstance()->getUserPTTState())
{
gSavedSettings.setBOOL("PTTCurrentlyEnabled", true);
LLVoiceClient::getInstance()->inputUserControlState(true);
LLVoiceClient::getInstance()->setUserPTTState(false); // Singu Note: Calling inputUserControlState(true) here sometimes(always?) toggled mic back on, likely due to the above setBOOL
}
}
LLVoiceClient::getInstance()->removeObserver(this);