summaryrefslogtreecommitdiff
path: root/indra/llcorehttp/_httpservice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llcorehttp/_httpservice.cpp')
-rw-r--r--indra/llcorehttp/_httpservice.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/indra/llcorehttp/_httpservice.cpp b/indra/llcorehttp/_httpservice.cpp
index b038bdb720..920a3f3b6d 100644
--- a/indra/llcorehttp/_httpservice.cpp
+++ b/indra/llcorehttp/_httpservice.cpp
@@ -79,11 +79,8 @@ HttpService::~HttpService()
mTransport = NULL;
}
- if (mPolicy)
- {
- delete mPolicy;
- mPolicy = NULL;
- }
+ delete mPolicy;
+ mPolicy = NULL;
if (mThread)
{
@@ -145,6 +142,10 @@ void HttpService::startThread()
{
mThread->release();
}
+
+ // Push current policy definitions
+ mPolicy->setPolicies(mPolicyGlobal);
+
mThread = new LLCoreInt::HttpThread(boost::bind(&HttpService::threadRun, this, _1));
mThread->addRef(); // Need an explicit reference, implicit one is used internally
sState = RUNNING;