summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandreykproductengine <andreykproductengine@lindenlab.com>2019-09-04 20:56:45 +0300
committerandreykproductengine <andreykproductengine@lindenlab.com>2019-09-04 20:56:45 +0300
commite1451bb1d1df2c122874d3962b1a91cb6a913ca3 (patch)
treedb594118519c1a6aad2eb8ccfa81d0cfbd65d447
parent27d391b2bb068ee38ba36e7b3169058196da9420 (diff)
DRTVWR-493 Do not recreate proxy only to destroy it
-rw-r--r--indra/llmessage/llproxy.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/llmessage/llproxy.cpp b/indra/llmessage/llproxy.cpp
index 5730a36267..eefac1de21 100644
--- a/indra/llmessage/llproxy.cpp
+++ b/indra/llmessage/llproxy.cpp
@@ -403,8 +403,11 @@ LLSocks5AuthType LLProxy::getSelectedAuthMethod() const
//static
void LLProxy::cleanupClass()
{
- getInstance()->stopSOCKSProxy();
- deleteSingleton();
+ if (instanceExists())
+ {
+ getInstance()->stopSOCKSProxy();
+ deleteSingleton();
+ }
}
/**