aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Cache
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Communications/Cache')
-rw-r--r--OpenSim/Framework/Communications/Cache/AssetCache.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/OpenSim/Framework/Communications/Cache/AssetCache.cs b/OpenSim/Framework/Communications/Cache/AssetCache.cs
index acdd593..3866e21 100644
--- a/OpenSim/Framework/Communications/Cache/AssetCache.cs
+++ b/OpenSim/Framework/Communications/Cache/AssetCache.cs
@@ -224,7 +224,7 @@ namespace OpenSim.Framework.Communications.Caches
224 lock (this.SendingTextures) 224 lock (this.SendingTextures)
225 { 225 {
226 this.SendingTextures.Remove(sender.request.ImageInfo.FullID); 226 this.SendingTextures.Remove(sender.request.ImageInfo.FullID);
227 this.AvatarRecievedTextures[sender.request.RequestUser.AgentId].Add(sender.request.ImageInfo.FullID); 227 // this.AvatarRecievedTextures[sender.request.RequestUser.AgentId].Add(sender.request.ImageInfo.FullID);
228 } 228 }
229 } 229 }
230 } 230 }
@@ -634,7 +634,8 @@ namespace OpenSim.Framework.Communications.Caches
634 public class TextureSender 634 public class TextureSender
635 { 635 {
636 public AssetRequest request; 636 public AssetRequest request;
637 637 private int counter = 0;
638
638 public TextureSender(AssetRequest req) 639 public TextureSender(AssetRequest req)
639 { 640 {
640 request = req; 641 request = req;
@@ -644,8 +645,9 @@ namespace OpenSim.Framework.Communications.Caches
644 public bool SendTexture() 645 public bool SendTexture()
645 { 646 {
646 SendPacket(); 647 SendPacket();
648 counter++;
647 649
648 if ((request.PacketCounter > request.NumPackets) |(request.NumPackets ==1)) 650 if ((request.PacketCounter > request.NumPackets) | (counter >120) |(request.NumPackets ==1))
649 { 651 {
650 return true; 652 return true;
651 } 653 }