From 3b0a6efde7c36ef2f0f569ef6516779ce1d03c28 Mon Sep 17 00:00:00 2001 From: diva Date: Thu, 18 Dec 2008 02:31:40 +0000 Subject: This innocuous change in the TextureDownloadModule suddenly made the texture problems (#2855) go away for me. I'm committing it, so that others can test and refute, to make sure I'm not hallucinating. --- .../Modules/Agent/TextureDownload/TextureDownloadModule.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment/Modules/Agent') diff --git a/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureDownloadModule.cs b/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureDownloadModule.cs index 8e56afb..a7ad37d 100644 --- a/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureDownloadModule.cs +++ b/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureDownloadModule.cs @@ -71,6 +71,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload if (m_scene == null) { //Console.WriteLine("Creating Texture download module"); + m_scene = scene; m_thread = new Thread(new ThreadStart(ProcessTextureSenders)); m_thread.Name = "ProcessTextureSenderThread"; m_thread.IsBackground = true; @@ -120,7 +121,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload if (m_userTextureServices.TryGetValue(agentId, out textureService)) { textureService.Close(); - + m_log.DebugFormat("[TEXTURE MODULE]: Removing UserTextureServices from {0}", m_scene.RegionInfo.RegionName); m_userTextureServices.Remove(agentId); } } @@ -144,9 +145,11 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload { if (m_userTextureServices.TryGetValue(client.AgentId, out textureService)) { + //m_log.DebugFormat("[TEXTURE MODULE]: Found existing UserTextureServices in ", m_scene.RegionInfo.RegionName); return true; } + m_log.DebugFormat("[TEXTURE MODULE]: Creating new UserTextureServices in ", m_scene.RegionInfo.RegionName); textureService = new UserTextureDownloadService(client, m_scene, m_queueSenders); m_userTextureServices.Add(client.AgentId, textureService); -- cgit v1.1