aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llsrv.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:13 -0500
committerJacek Antonelli2008-08-15 23:45:13 -0500
commitc206147ceffd6836bf0f6fe50d0ae4de77c7dcba (patch)
treed8c59df84d01578baea97fb84899a547218f2c8d /linden/indra/newview/llsrv.cpp
parentSecond Life viewer sources 1.18.4.0-RC (diff)
downloadmeta-impy-c206147ceffd6836bf0f6fe50d0ae4de77c7dcba.zip
meta-impy-c206147ceffd6836bf0f6fe50d0ae4de77c7dcba.tar.gz
meta-impy-c206147ceffd6836bf0f6fe50d0ae4de77c7dcba.tar.bz2
meta-impy-c206147ceffd6836bf0f6fe50d0ae4de77c7dcba.tar.xz
Second Life viewer sources 1.18.4.1-RC
Diffstat (limited to 'linden/indra/newview/llsrv.cpp')
-rw-r--r--linden/indra/newview/llsrv.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/linden/indra/newview/llsrv.cpp b/linden/indra/newview/llsrv.cpp
index 150fcb1..7271513 100644
--- a/linden/indra/newview/llsrv.cpp
+++ b/linden/indra/newview/llsrv.cpp
@@ -51,6 +51,19 @@ std::vector<std::string> LLSRV::rewriteURI(const std::string& uri)
51 LLPointer<Responder> resp = new Responder; 51 LLPointer<Responder> resp = new Responder;
52 52
53 gAres->rewriteURI(uri, resp); 53 gAres->rewriteURI(uri, resp);
54 gAres->processAll(); 54 gAres->processAll();
55 return resp->mUris; 55
56 // It's been observed in deployment that c-ares can return control
57 // to us without firing all of our callbacks, in which case the
58 // returned vector will be empty, instead of a singleton as we
59 // might wish.
60
61 if (!resp->mUris.empty())
62 {
63 return resp->mUris;
64 }
65
66 std::vector<std::string> uris;
67 uris.push_back(uri);
68 return uris;
56} 69}