diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2011-10-10 15:32:57 -0400 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2011-10-10 15:32:57 -0400 |
commit | d65d451448573f95b065a9be7c88ff239d5ed8be (patch) | |
tree | 7734e1017a9bb81f4073ffa7839bba39dbde7ab1 /indra/llcommon/llevents.cpp | |
parent | 22795e0a8da1bd99a5bb0e4df62b684eb2fc3931 (diff) | |
parent | a15701de33007f60994181d8e7300d1e624de373 (diff) |
merge
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 |