cosmetics

master
UbitUmarov 2020-05-07 14:26:07 +01:00
parent f0fc1f628f
commit f70f0b5ffd
3 changed files with 21 additions and 25 deletions

View File

@ -606,22 +606,22 @@ namespace OpenSim.Groups
if (eq != null) if (eq != null)
{ {
eq.ChatterboxInvitation( eq.ChatterboxInvitation(
GroupID GroupID
, groupInfo.GroupName , groupInfo.GroupName
, fromAgent , fromAgent
, msg.message , msg.message
, AgentID , AgentID
, msg.fromAgentName , msg.fromAgentName
, msg.dialog , msg.dialog
, msg.timestamp , msg.timestamp
, msg.offline == 1 , msg.offline == 1
, (int)msg.ParentEstateID , (int)msg.ParentEstateID
, msg.Position , msg.Position
, 1 , 1
, new UUID(msg.imSessionID) , new UUID(msg.imSessionID)
, msg.fromGroup , msg.fromGroup
, OpenMetaverse.Utils.StringToBytes(groupInfo.GroupName) , OpenMetaverse.Utils.StringToBytes(groupInfo.GroupName)
); );
var update = new GroupChatListAgentUpdateData(AgentID); var update = new GroupChatListAgentUpdateData(AgentID);
var updates = new List<GroupChatListAgentUpdateData> { update }; var updates = new List<GroupChatListAgentUpdateData> { update };

View File

@ -169,12 +169,7 @@ namespace OpenSim.Framework.Servers.HttpServer
if (req.HttpContext.IsSending()) if (req.HttpContext.IsSending())
{ {
if ((Environment.TickCount - req.RequestTime) > req.PollServiceArgs.TimeOutms) ReQueueEvent(req);
{
req.PollServiceArgs.Drop(req.RequestID, req.PollServiceArgs.Id);
}
else
ReQueueEvent(req);
continue; continue;
} }

View File

@ -516,11 +516,11 @@ namespace OpenSim.Region.ClientStack.Linden
totalSize += EventHeader.Length; totalSize += EventHeader.Length;
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder(1024);
LLSDxmlEncode.AddEndArray(sb); // events array LLSDxmlEncode.AddEndArray(sb); // events array
LLSDxmlEncode.AddElem("id", thisID, sb); LLSDxmlEncode.AddElem("id", thisID, sb);
LLSDxmlEncode.AddEndMap(sb); LLSDxmlEncode.AddEndMap(sb);
element = Encoding.UTF8.GetBytes(LLSDxmlEncode.End(sb)); element = LLSDxmlEncode.EndToNBBytes(sb);
elements.Add(element); elements.Add(element);
totalSize += element.Length; totalSize += element.Length;
@ -531,8 +531,9 @@ namespace OpenSim.Region.ClientStack.Linden
//temporary //temporary
byte[] finalData = new byte[totalSize]; byte[] finalData = new byte[totalSize];
int dst = 0; int dst = 0;
foreach(byte[] src in elements) for(int i = 0; i < elements.Count; ++i)
{ {
byte[] src = elements[i];
Array.Copy(src, 0, finalData, dst, src.Length); Array.Copy(src, 0, finalData, dst, src.Length);
dst += src.Length; dst += src.Length;
} }