Fix slow loading of task inventory

This commit is contained in:
Melanie
2012-07-19 12:27:36 +02:00
parent 4917637ce6
commit ce8b9e6c57
6 changed files with 18 additions and 11 deletions

View File

@@ -2122,16 +2122,20 @@ namespace OpenSim.Region.ClientStack.LindenUDP
replytask.InventoryData.TaskID = taskID;
replytask.InventoryData.Serial = serial;
replytask.InventoryData.Filename = fileName;
OutPacket(replytask, ThrottleOutPacketType.Asset);
OutPacket(replytask, ThrottleOutPacketType.Task);
}
public void SendXferPacket(ulong xferID, uint packet, byte[] data)
public void SendXferPacket(ulong xferID, uint packet, byte[] data, bool isTaskInventory)
{
ThrottleOutPacketType type = ThrottleOutPacketType.Asset;
if (isTaskInventory)
type = ThrottleOutPacketType.Task;
SendXferPacketPacket sendXfer = (SendXferPacketPacket)PacketPool.Instance.GetPacket(PacketType.SendXferPacket);
sendXfer.XferID.ID = xferID;
sendXfer.XferID.Packet = packet;
sendXfer.DataPacket.Data = data;
OutPacket(sendXfer, ThrottleOutPacketType.Asset);
OutPacket(sendXfer, type);
}
public void SendAbortXferPacket(ulong xferID)