diff options
author | andreykproductengine <andreykproductengine@lindenlab.com> | 2017-07-01 22:00:26 +0300 |
---|---|---|
committer | andreykproductengine <andreykproductengine@lindenlab.com> | 2017-07-01 22:00:26 +0300 |
commit | 4054a935e8976bea6af44332932c9924b8fb94dd (patch) | |
tree | cb8bce138a34cda4feee955da34f320a5e0b587d | |
parent | 5a10be34df879fb9ae659ed8eabf3db0751b2819 (diff) |
MAINT-142 No need for callback on normal exit
-rw-r--r-- | indra/newview/llvoicevivox.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/indra/newview/llvoicevivox.cpp b/indra/newview/llvoicevivox.cpp index 6a91f26b0b..a754e857ac 100644 --- a/indra/newview/llvoicevivox.cpp +++ b/indra/newview/llvoicevivox.cpp @@ -164,6 +164,7 @@ static void killGateway() { if (sGatewayPtr) { + sGatewayPump.stopListening("VivoxDaemonPump"); sGatewayPtr->kill(); } } @@ -602,11 +603,14 @@ bool LLVivoxVoiceClient::endAndDisconnectSession() bool LLVivoxVoiceClient::callbackEndDaemon(const LLSD& data) { - terminateAudioSession(false); - closeSocket(); - cleanUp(); - LLVoiceClient::getInstance()->setUserPTTState(false); - gAgent.setVoiceConnected(false); + if (!LLAppViewer::isExiting()) + { + terminateAudioSession(false); + closeSocket(); + cleanUp(); + LLVoiceClient::getInstance()->setUserPTTState(false); + gAgent.setVoiceConnected(false); + } sGatewayPump.stopListening("VivoxDaemonPump"); return false; } |