diff options
| author | Rider Linden <rider@lindenlab.com> | 2019-03-08 17:34:49 -0800 | 
|---|---|---|
| committer | Rider Linden <rider@lindenlab.com> | 2019-03-08 17:34:49 -0800 | 
| commit | 5de9754e3079e18c855b0b713102b6b65b81af10 (patch) | |
| tree | 845eac17afb9f3a64a53fdfbbb65b6c7cbd467a4 /indra/llcommon | |
| parent | 83f4b8a775fcd76ce2a61d3da98cdc91c61fe383 (diff) | |
SL-10702: When attempting a new voice connection, ensure that the voicePump mail drop does not have any outstanding events.
Diffstat (limited to 'indra/llcommon')
| -rw-r--r-- | indra/llcommon/llevents.h | 10 | 
1 files changed, 6 insertions, 4 deletions
| diff --git a/indra/llcommon/llevents.h b/indra/llcommon/llevents.h index 5d60c63810..d850cb4fcc 100644 --- a/indra/llcommon/llevents.h +++ b/indra/llcommon/llevents.h @@ -582,11 +582,12 @@ public:      /// Generate a distinct name for a listener -- see listen()      static std::string inventName(const std::string& pfx="listener"); -private: -    friend class LLEventPumps;      /// flush queued events      virtual void flush() {} +private: +    friend class LLEventPumps; +      virtual void reset(); @@ -675,8 +676,10 @@ public:      virtual ~LLEventMailDrop() {}      /// Post an event to all listeners -    virtual bool post(const LLSD& event); +    virtual bool post(const LLSD& event) override; +    /// Remove any history stored in the mail drop. +    virtual void flush() override { mEventHistory.clear(); LLEventStream::flush(); };  protected:      virtual LLBoundListener listen_impl(const std::string& name, const LLEventListener&,                                          const NameList& after, @@ -703,7 +706,6 @@ public:      /// Post an event to all listeners      virtual bool post(const LLSD& event); -private:      /// flush queued events      virtual void flush(); | 
