mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
let SendAvatarGroupsReply fall back to UDP if no caps and make use of it
This commit is contained in:
@@ -3406,6 +3406,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
|
||||
public void SendAgentGroupDataUpdate(UUID avatarID, GroupMembershipData[] data)
|
||||
{
|
||||
IEventQueue eq = this.Scene.RequestModuleInterface<IEventQueue>();
|
||||
|
||||
// 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<IEventQueue>();
|
||||
if (eq != null)
|
||||
{
|
||||
eq.Enqueue(BuildEvent("AgentGroupDataUpdate", llsd), this.AgentId);
|
||||
}
|
||||
eq.Enqueue(BuildEvent("AgentGroupDataUpdate", llsd), this.AgentId);
|
||||
}
|
||||
|
||||
public void SendJoinGroupReply(UUID groupID, bool success)
|
||||
|
||||
Reference in New Issue
Block a user