summaryrefslogtreecommitdiff
path: root/indra/llcommon/llevents.cpp
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2010-12-22 23:24:58 -0800
committerMerov Linden <merov@lindenlab.com>2010-12-22 23:24:58 -0800
commit49de8add8355455da4b6ec5aaa55427fafa94322 (patch)
tree5a068501f2332eb7641dfe14f4508869d3635bad /indra/llcommon/llevents.cpp
parentc86d6a7bbb7c0db7665b76cf52b12b90c6e98c6d (diff)
parente1b198a36b051051941c61d0a558766591ed4cfc (diff)
STORM-810 : Auto update and related changes (integration request from team chopper)
Diffstat (limited to 'indra/llcommon/llevents.cpp')
-rw-r--r--indra/llcommon/llevents.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/llcommon/llevents.cpp b/indra/llcommon/llevents.cpp
index 84a6620a77..97e2bdeb57 100644
--- a/indra/llcommon/llevents.cpp
+++ b/indra/llcommon/llevents.cpp
@@ -475,7 +475,7 @@ void LLEventPump::stopListening(const std::string& name)
*****************************************************************************/
bool LLEventStream::post(const LLSD& event)
{
- if (! mEnabled)
+ if (! mEnabled || !mSignal)
{
return false;
}
@@ -515,6 +515,8 @@ bool LLEventQueue::post(const LLSD& event)
void LLEventQueue::flush()
{
+ if(!mSignal) return;
+
// Consider the case when a given listener on this LLEventQueue posts yet
// another event on the same queue. If we loop over mEventQueue directly,
// we'll end up processing all those events during the same flush() call