diff options
author | Richard Linden <none@none> | 2011-10-15 18:14:49 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2011-10-15 18:14:49 -0700 |
commit | 4aed73ceb18c656e0f36c91bd0efb9a705341629 (patch) | |
tree | 013b1382be366aa2a9d1caf7bb563e04f7d8b2ed /indra/llcommon/llevents.cpp | |
parent | 7c2f2b526ad2b33f1e25378b5a05379de6aa0b5a (diff) | |
parent | 62d9db2f21b2a6fb579e8f7631a4e387cc5e5b29 (diff) |
Automated merge with ssh://hg.lindenlab.com/richard/viewer-experience-fui
Diffstat (limited to 'indra/llcommon/llevents.cpp')
-rw-r--r-- | indra/llcommon/llevents.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/llcommon/llevents.cpp b/indra/llcommon/llevents.cpp index ff03506e84..db1ea4792b 100644 --- a/indra/llcommon/llevents.cpp +++ b/indra/llcommon/llevents.cpp @@ -591,6 +591,17 @@ void LLReqID::stamp(LLSD& response) const bool sendReply(const LLSD& reply, const LLSD& request, const std::string& replyKey) { + // If the original request has no value for replyKey, it's pointless to + // construct or send a reply event: on which LLEventPump should we send + // it? Allow that to be optional: if the caller wants to require replyKey, + // it can so specify when registering the operation method. + if (! request.has(replyKey)) + { + return false; + } + + // Here the request definitely contains replyKey; reasonable to proceed. + // Copy 'reply' to modify it. LLSD newreply(reply); // Get the ["reqid"] element from request |