diff options
| author | Rider Linden <rider@lindenlab.com> | 2016-04-22 12:07:27 -0700 |
|---|---|---|
| committer | Rider Linden <rider@lindenlab.com> | 2016-04-22 12:07:27 -0700 |
| commit | 899489ae0a4bc4eb187e7813e338b937384a1866 (patch) | |
| tree | e83b388e1f35d1fe53701203131cd94ac5216ec2 /indra/llcommon/lleventfilter.cpp | |
| parent | 8f4be8bb869e3cde034607cbe0cb8272005f08b8 (diff) | |
MAINT-6336: Centralize waiting on event pump with a timeout. Shorten the lifespan of a timeout event pump lifespan to be no longer than necessary. Change all references to the LLEventTimer to instead uses the centralized version.
Diffstat (limited to 'indra/llcommon/lleventfilter.cpp')
| -rwxr-xr-x | indra/llcommon/lleventfilter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llcommon/lleventfilter.cpp b/indra/llcommon/lleventfilter.cpp index d36a107254..64ab58adcd 100755 --- a/indra/llcommon/lleventfilter.cpp +++ b/indra/llcommon/lleventfilter.cpp @@ -39,9 +39,9 @@ #include "llsdutil.h" // llsd_matches() LLEventFilter::LLEventFilter(LLEventPump& source, const std::string& name, bool tweak): - LLEventStream(name, tweak) + LLEventStream(name, tweak), + mSource(source.listen(getName(), boost::bind(&LLEventFilter::post, this, _1))) { - source.listen(getName(), boost::bind(&LLEventFilter::post, this, _1)); } LLEventMatching::LLEventMatching(const LLSD& pattern): |
