Skip to content
Snippets Groups Projects
Commit dcff9513 authored by andreykproductengine's avatar andreykproductengine
Browse files

MAINT-6978 Proxy should not be initialized outside of startLLProxy()

parent 0d836acf
No related branches found
No related tags found
No related merge requests found
......@@ -568,7 +568,17 @@ HttpStatus HttpOpRequest::prepareRequest(HttpService * service)
// Use the viewer-based thread-safe API which has a
// fast/safe check for proxy enable. Would like to
// encapsulate this someway...
LLProxy::getInstance()->applyProxySettings(mCurlHandle);
if (LLProxy::instanceExists())
{
// Make sure proxy won't be initialized from here,
// it might conflict with LLStartUp::startLLProxy()
LLProxy::getInstance()->applyProxySettings(mCurlHandle);
}
else
{
LL_WARNS() << "Proxy is not initialized!" << LL_ENDL;
}
}
else if (gpolicy.mHttpProxy.size())
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment