diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llmessage/llares.cpp | 11 |
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 | ||
103 | LLAres::LLAres() | 103 | LLAres::LLAres() : |
104 | chan_(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 | ||
108 | LLAres::~LLAres() | 115 | LLAres::~LLAres() |