aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
authorArmin Weatherwax2011-07-08 17:05:44 +0200
committerArmin Weatherwax2011-11-13 14:28:27 +0100
commitdd868b608fc9d39acc16b2423d74a09eddbc4501 (patch)
tree77c599ea61ae47310a74a47cd0ccc3f502fb0e21 /linden/indra
parentLinux64: don't use -ffast-math for release builds, it didn't do anything for us. (diff)
downloadmeta-impy-dd868b608fc9d39acc16b2423d74a09eddbc4501.zip
meta-impy-dd868b608fc9d39acc16b2423d74a09eddbc4501.tar.gz
meta-impy-dd868b608fc9d39acc16b2423d74a09eddbc4501.tar.bz2
meta-impy-dd868b608fc9d39acc16b2423d74a09eddbc4501.tar.xz
improve the voiceclient shutdown a bit
Diffstat (limited to 'linden/indra')
-rw-r--r--linden/indra/newview/llvoiceclient.cpp19
1 files changed, 14 insertions, 5 deletions
diff --git a/linden/indra/newview/llvoiceclient.cpp b/linden/indra/newview/llvoiceclient.cpp
index 946b289..07d2fa9 100644
--- a/linden/indra/newview/llvoiceclient.cpp
+++ b/linden/indra/newview/llvoiceclient.cpp
@@ -1209,13 +1209,22 @@ void LLVoiceClient::terminate()
1209 // ms_sleep(2000); 1209 // ms_sleep(2000);
1210 gVoiceClient->connectorShutdown(); 1210 gVoiceClient->connectorShutdown();
1211 gVoiceClient->closeSocket(); // Need to do this now -- bad things happen if the destructor does it later. 1211 gVoiceClient->closeSocket(); // Need to do this now -- bad things happen if the destructor does it later.
1212 1212
1213 // This will do unpleasant things on windows. 1213 LL_DEBUGS("IdleCallbacks") << "IdleCallbacks deleteFunction "
1214// killGateway(); 1214 << "called from LLVoiceClient" << LL_ENDL;
1215 1215 gIdleCallbacks.deleteFunction(idle, gVoiceClient);
1216
1217 if (isGatewayRunning())
1218 {
1219 // This will do unpleasant things on windows.
1220 // AW: no unpleasant things observed on windows,
1221 // guess they came from sloppy cleanup.
1222 killGateway();
1223 }
1224
1216 // Don't do this anymore -- LLSingleton will take care of deleting the object. 1225 // Don't do this anymore -- LLSingleton will take care of deleting the object.
1217// delete gVoiceClient; 1226// delete gVoiceClient;
1218 1227
1219 // Hint to other code not to access the voice client anymore. 1228 // Hint to other code not to access the voice client anymore.
1220 gVoiceClient = NULL; 1229 gVoiceClient = NULL;
1221 } 1230 }