diff options
Diffstat (limited to 'OpenSim/Framework/Communications/Cache/AssetCache.cs')
-rw-r--r-- | OpenSim/Framework/Communications/Cache/AssetCache.cs | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/OpenSim/Framework/Communications/Cache/AssetCache.cs b/OpenSim/Framework/Communications/Cache/AssetCache.cs index 8a16f03..2f4c006 100644 --- a/OpenSim/Framework/Communications/Cache/AssetCache.cs +++ b/OpenSim/Framework/Communications/Cache/AssetCache.cs | |||
@@ -200,10 +200,7 @@ namespace OpenSim.Framework.Communications.Caches | |||
200 | //Console.WriteLine("new texture to send"); | 200 | //Console.WriteLine("new texture to send"); |
201 | TextureSender sender = new TextureSender(req); | 201 | TextureSender sender = new TextureSender(req); |
202 | //sender.OnComplete += this.TextureSent; | 202 | //sender.OnComplete += this.TextureSent; |
203 | lock (this.SendingTextures) | 203 | this.SendingTextures.Add(req.ImageInfo.FullID, sender); |
204 | { | ||
205 | this.SendingTextures.Add(req.ImageInfo.FullID, sender); | ||
206 | } | ||
207 | this.QueueTextures.Enqueue(sender); | 204 | this.QueueTextures.Enqueue(sender); |
208 | } | 205 | } |
209 | 206 | ||
@@ -263,11 +260,8 @@ namespace OpenSim.Framework.Communications.Caches | |||
263 | { | 260 | { |
264 | if (this.SendingTextures.ContainsKey(sender.request.ImageInfo.FullID)) | 261 | if (this.SendingTextures.ContainsKey(sender.request.ImageInfo.FullID)) |
265 | { | 262 | { |
266 | lock (this.SendingTextures) | 263 | this.SendingTextures.Remove(sender.request.ImageInfo.FullID); |
267 | { | 264 | // this.AvatarRecievedTextures[sender.request.RequestUser.AgentId].Add(sender.request.ImageInfo.FullID); |
268 | this.SendingTextures.Remove(sender.request.ImageInfo.FullID); | ||
269 | // this.AvatarRecievedTextures[sender.request.RequestUser.AgentId].Add(sender.request.ImageInfo.FullID); | ||
270 | } | ||
271 | } | 265 | } |
272 | } | 266 | } |
273 | 267 | ||