diff options
Diffstat (limited to 'OpenSim')
-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 | ||