aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llares.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llmessage/llares.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/linden/indra/llmessage/llares.cpp b/linden/indra/llmessage/llares.cpp
index 5a310b3..7f573d2 100644
--- a/linden/indra/llmessage/llares.cpp
+++ b/linden/indra/llmessage/llares.cpp
@@ -100,9 +100,16 @@ void LLAres::QueryResponder::queryError(int code)
100 << LLAres::strerror(code) << llendl; 100 << LLAres::strerror(code) << llendl;
101} 101}
102 102
103LLAres::LLAres() 103LLAres::LLAres() :
104chan_(NULL), mInitSuccess(false)
104{ 105{
105 ares_init(&chan_); 106 if (ares_init(&chan_) != ARES_SUCCESS)
107 {
108 llwarns << "Could not succesfully initialize ares!" << llendl;
109 return;
110 }
111
112 mInitSuccess = true;
106} 113}
107 114
108LLAres::~LLAres() 115LLAres::~LLAres()