From 04b32e19820a9d4e4e82906cc2f5c0396256e6aa Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sun, 27 Sep 2015 07:05:47 +0100 Subject: let SendAvatarGroupsReply fall back to UDP if no caps and make use of it --- OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'OpenSim/Region/ClientStack') diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index a524561..6667c35 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs @@ -3406,6 +3406,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP public void SendAgentGroupDataUpdate(UUID avatarID, GroupMembershipData[] data) { + IEventQueue eq = this.Scene.RequestModuleInterface(); + + // use UDP if no caps + if (eq == null) + { + SendGroupMembership(data); + } + OSDMap llsd = new OSDMap(3); OSDArray AgentData = new OSDArray(1); OSDMap AgentDataMap = new OSDMap(1); @@ -3432,11 +3440,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP llsd.Add("GroupData", GroupData); llsd.Add("NewGroupData", NewGroupData); - IEventQueue eq = this.Scene.RequestModuleInterface(); - if (eq != null) - { - eq.Enqueue(BuildEvent("AgentGroupDataUpdate", llsd), this.AgentId); - } + eq.Enqueue(BuildEvent("AgentGroupDataUpdate", llsd), this.AgentId); } public void SendJoinGroupReply(UUID groupID, bool success) -- cgit v1.1