aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llares.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-28 17:21:23 -0500
committerJacek Antonelli2008-09-28 17:21:46 -0500
commit31e7c77a411d94bc87f0232588b339149bb29a49 (patch)
tree49e487700e91713e620e4d33f20b7f7afb5a2fa9 /linden/indra/llmessage/llares.cpp
parentSecond Life viewer sources 1.21.2-RC (diff)
downloadmeta-impy-31e7c77a411d94bc87f0232588b339149bb29a49.zip
meta-impy-31e7c77a411d94bc87f0232588b339149bb29a49.tar.gz
meta-impy-31e7c77a411d94bc87f0232588b339149bb29a49.tar.bz2
meta-impy-31e7c77a411d94bc87f0232588b339149bb29a49.tar.xz
Second Life viewer sources 1.21.3-RC
Diffstat (limited to 'linden/indra/llmessage/llares.cpp')
-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()