diff options
author | Monroe Linden <monroe@lindenlab.com> | 2009-11-19 16:35:11 -0800 |
---|---|---|
committer | Monroe Linden <monroe@lindenlab.com> | 2009-11-19 16:35:11 -0800 |
commit | ba3f7965e35e4eb0d7fcecc7267ec3af5f2d8d87 (patch) | |
tree | 096b48d1df266f478b56d089ca3f1f12102bade5 /indra/newview/llvovolume.cpp | |
parent | 320dfa1d72c2eab9c59daf6bb13cc5001162c7b0 (diff) |
Made LLMediaDataClient not send requests on behalf of objects that are marked as dead.
When LLMediaDataClient::QueueTimer::tick() encounters an object at the head of the queue that's dead, it will now remove that object and loop, instead of sending a request and waiting for the tick timer to fire again.
Added an isDead() function to LLMediaDataClientObject, and an additional unit test that verifies the handling of dead objects.
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rw-r--r-- | indra/newview/llvovolume.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index 8bfbfcb9c3..5a67e64bbd 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -140,6 +140,9 @@ public: virtual std::string getCapabilityUrl(const std::string &name) const { return mObject->getRegion()->getCapability(name); } + virtual bool isDead() const + { return mObject->isDead(); } + private: LLPointer<LLVOVolume> mObject; }; |