summaryrefslogtreecommitdiff
path: root/indra/llcommon/llevents.cpp
diff options
context:
space:
mode:
authorcallum <none@none>2011-01-05 15:52:43 -0800
committercallum <none@none>2011-01-05 15:52:43 -0800
commitb9ca6c553cf158c5b485947f8b560228a196c1d7 (patch)
treedf710eb467a1c0fbfb5d7906232f23a36f6fc7c1 /indra/llcommon/llevents.cpp
parented3ea14984e322462ed466805e47b29a6f658279 (diff)
parentd5a0c56bf5d933b7cee072cbc1851a626e672ded (diff)
Merge with viewer-development
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