diff options
author | Bjoseph Wombat <bjoseph@vivox.com> | 2015-10-07 17:39:50 -0400 |
---|---|---|
committer | Bjoseph Wombat <bjoseph@vivox.com> | 2015-10-07 17:39:50 -0400 |
commit | 4d81570d62bc9d746565083ef18fdc16c198a5dc (patch) | |
tree | 16b0201f7025ba6e6b680ffc305fdcae90661262 /indra/newview/llvoicevivox.cpp | |
parent | 9c4202f2f837601b76d1e04045a1914e1c974981 (diff) |
A small tweak when SLVoice is not running
Diffstat (limited to 'indra/newview/llvoicevivox.cpp')
-rwxr-xr-x | indra/newview/llvoicevivox.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/indra/newview/llvoicevivox.cpp b/indra/newview/llvoicevivox.cpp index 77ce2d9b8f..7b4d9c11c0 100755 --- a/indra/newview/llvoicevivox.cpp +++ b/indra/newview/llvoicevivox.cpp @@ -391,6 +391,7 @@ void LLVivoxVoiceClient::terminate() #endif closeSocket(); // Need to do this now -- bad things happen if the destructor does it later. cleanUp(); + mConnected = false; } else { @@ -735,16 +736,18 @@ void LLVivoxVoiceClient::stateMachine() //if((getState() != stateDisabled) && (getState() != stateDisableCleanup)) { // User turned off voice support. Send the cleanup messages, close the socket, and reset. - if(!mConnected || mTerminateDaemon) + if(!mConnected && mTerminateDaemon) { // if voice was turned off after the daemon was launched but before we could connect to it, we may need to issue a kill. LL_INFOS("Voice") << "Disabling voice before connection to daemon, terminating." << LL_ENDL; killGateway(); mTerminateDaemon = false; + mConnected = false; + } + else { + logout(); + connectorShutdown(); } - - logout(); - connectorShutdown(); setState(stateDisableCleanup); } |