diff options
author | diva | 2008-12-18 02:31:40 +0000 |
---|---|---|
committer | diva | 2008-12-18 02:31:40 +0000 |
commit | 3b0a6efde7c36ef2f0f569ef6516779ce1d03c28 (patch) | |
tree | 700355eeb88796f14ba0d35cd2f89f2eaa8a1504 | |
parent | * Committing an opensim level error message on httpserver. This might help w... (diff) | |
download | opensim-SC-3b0a6efde7c36ef2f0f569ef6516779ce1d03c28.zip opensim-SC-3b0a6efde7c36ef2f0f569ef6516779ce1d03c28.tar.gz opensim-SC-3b0a6efde7c36ef2f0f569ef6516779ce1d03c28.tar.bz2 opensim-SC-3b0a6efde7c36ef2f0f569ef6516779ce1d03c28.tar.xz |
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.
-rw-r--r-- | OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureDownloadModule.cs | 5 |
1 files changed, 4 insertions, 1 deletions
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 | |||
71 | if (m_scene == null) | 71 | if (m_scene == null) |
72 | { | 72 | { |
73 | //Console.WriteLine("Creating Texture download module"); | 73 | //Console.WriteLine("Creating Texture download module"); |
74 | m_scene = scene; | ||
74 | m_thread = new Thread(new ThreadStart(ProcessTextureSenders)); | 75 | m_thread = new Thread(new ThreadStart(ProcessTextureSenders)); |
75 | m_thread.Name = "ProcessTextureSenderThread"; | 76 | m_thread.Name = "ProcessTextureSenderThread"; |
76 | m_thread.IsBackground = true; | 77 | m_thread.IsBackground = true; |
@@ -120,7 +121,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload | |||
120 | if (m_userTextureServices.TryGetValue(agentId, out textureService)) | 121 | if (m_userTextureServices.TryGetValue(agentId, out textureService)) |
121 | { | 122 | { |
122 | textureService.Close(); | 123 | textureService.Close(); |
123 | 124 | m_log.DebugFormat("[TEXTURE MODULE]: Removing UserTextureServices from {0}", m_scene.RegionInfo.RegionName); | |
124 | m_userTextureServices.Remove(agentId); | 125 | m_userTextureServices.Remove(agentId); |
125 | } | 126 | } |
126 | } | 127 | } |
@@ -144,9 +145,11 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload | |||
144 | { | 145 | { |
145 | if (m_userTextureServices.TryGetValue(client.AgentId, out textureService)) | 146 | if (m_userTextureServices.TryGetValue(client.AgentId, out textureService)) |
146 | { | 147 | { |
148 | //m_log.DebugFormat("[TEXTURE MODULE]: Found existing UserTextureServices in ", m_scene.RegionInfo.RegionName); | ||
147 | return true; | 149 | return true; |
148 | } | 150 | } |
149 | 151 | ||
152 | m_log.DebugFormat("[TEXTURE MODULE]: Creating new UserTextureServices in ", m_scene.RegionInfo.RegionName); | ||
150 | textureService = new UserTextureDownloadService(client, m_scene, m_queueSenders); | 153 | textureService = new UserTextureDownloadService(client, m_scene, m_queueSenders); |
151 | m_userTextureServices.Add(client.AgentId, textureService); | 154 | m_userTextureServices.Add(client.AgentId, textureService); |
152 | 155 | ||