diff options
author | Jacek Antonelli | 2008-08-15 23:45:13 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:13 -0500 |
commit | c206147ceffd6836bf0f6fe50d0ae4de77c7dcba (patch) | |
tree | d8c59df84d01578baea97fb84899a547218f2c8d /linden/indra/newview/llsrv.cpp | |
parent | Second Life viewer sources 1.18.4.0-RC (diff) | |
download | meta-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.cpp | 17 |
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 | } |