diff options
author | Steven Bennetts <steve@lindenlab.com> | 2008-09-29 19:14:50 +0000 |
---|---|---|
committer | Steven Bennetts <steve@lindenlab.com> | 2008-09-29 19:14:50 +0000 |
commit | d725e5b24075b2171f8a5b263969991e9b475078 (patch) | |
tree | f1422064fd0ab676dfa66d39b5d0f0b9e8ff1086 /indra/llmessage/llares.cpp | |
parent | 66739da16407a8e56accc236bd3996c1963a6bcf (diff) |
QAR-872 Viewer 1.21 RC 3
merge viewer_1-21 96116-97380 -> release
Diffstat (limited to 'indra/llmessage/llares.cpp')
-rw-r--r-- | indra/llmessage/llares.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/indra/llmessage/llares.cpp b/indra/llmessage/llares.cpp index d11f227c21..c4c19b8fbd 100644 --- a/indra/llmessage/llares.cpp +++ b/indra/llmessage/llares.cpp @@ -100,9 +100,16 @@ void LLAres::QueryResponder::queryError(int code) << LLAres::strerror(code) << llendl; } -LLAres::LLAres() +LLAres::LLAres() : +chan_(NULL), mInitSuccess(false) { - ares_init(&chan_); + if (ares_init(&chan_) != ARES_SUCCESS) + { + llwarns << "Could not succesfully initialize ares!" << llendl; + return; + } + + mInitSuccess = true; } LLAres::~LLAres() |