summaryrefslogtreecommitdiff
path: root/indra/newview/llvoicevivox.cpp
diff options
context:
space:
mode:
authorLynx Linden <lynx@lindenlab.com>2010-06-10 18:57:18 +0100
committerLynx Linden <lynx@lindenlab.com>2010-06-10 18:57:18 +0100
commit5f8cc41e798daecb481cbabdbbd080a53f5253a6 (patch)
treed8f67746607e592e1002b3b4a1a77269d0b3892f /indra/newview/llvoicevivox.cpp
parent9370ffac47665c309c28fb075b26d8da43192e23 (diff)
parentf2f7f7b3bb2c8466e2a07f8f586a1a63fdae8a66 (diff)
Merging latest dessie/viewer-release into brad/viewer-public
Diffstat (limited to 'indra/newview/llvoicevivox.cpp')
-rw-r--r--indra/newview/llvoicevivox.cpp23
1 files changed, 10 insertions, 13 deletions
diff --git a/indra/newview/llvoicevivox.cpp b/indra/newview/llvoicevivox.cpp
index 39649f0370..4dc9edb247 100644
--- a/indra/newview/llvoicevivox.cpp
+++ b/indra/newview/llvoicevivox.cpp
@@ -402,19 +402,16 @@ void LLVivoxVoiceClient::init(LLPumpIO *pump)
void LLVivoxVoiceClient::terminate()
{
-
-// leaveAudioSession();
- logout();
- // As of SDK version 4885, this should no longer be necessary. It will linger after the socket close if it needs to.
- // ms_sleep(2000);
- connectorShutdown();
- closeSocket(); // Need to do this now -- bad things happen if the destructor does it later.
-
- // This will do unpleasant things on windows.
-// killGateway();
-
-
-
+ if(mConnected)
+ {
+ logout();
+ connectorShutdown();
+ closeSocket(); // Need to do this now -- bad things happen if the destructor does it later.
+ }
+ else
+ {
+ killGateway();
+ }
}
const LLVoiceVersionInfo& LLVivoxVoiceClient::getVersion()