From 4dace036966a45d964f16842979e5612231ed1a1 Mon Sep 17 00:00:00 2001 From: Dahlia Trimble Date: Mon, 26 Jan 2009 10:42:24 +0000 Subject: add a definition for a parcel properties CAP send parcel properties via eventqueue rather than UDP to facilitate libomv clients - see Mantis #3040 --- OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index e8e674f..e58549a 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -3187,8 +3187,23 @@ namespace OpenSim.Region.ClientStack.LindenUDP updatePacket.ParcelData.UserLocation = landData.UserLocation; updatePacket.ParcelData.UserLookAt = landData.UserLookAt; updatePacket.Header.Zerocoded = true; - - OutPacket(updatePacket, ThrottleOutPacketType.Task); + + try + { + IEventQueue eq = Scene.RequestModuleInterface(); + if (eq != null) + { + OSD Item = Environment.EventQueueHelper.ParcelProperties(updatePacket); + + eq.Enqueue(Item, this.AgentId); + } + } + catch (Exception ex) + { + m_log.Error("Unable to send parcel data via eventqueue - exception: " + ex.ToString()); + m_log.Warn("sending parcel data via UDP"); + OutPacket(updatePacket, ThrottleOutPacketType.Task); + } } public void SendLandAccessListData(List avatars, uint accessFlag, int localLandID) -- cgit v1.1