diff options
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/newview/llvoiceclient.cpp | 19 |
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 | } |