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.

0.6.1-post-fixes
diva 2008-12-18 02:31:40 +00:00
parent 6358c21208
commit 3b0a6efde7
1 changed files with 4 additions and 1 deletions

View File

@ -71,6 +71,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload
if (m_scene == null) if (m_scene == null)
{ {
//Console.WriteLine("Creating Texture download module"); //Console.WriteLine("Creating Texture download module");
m_scene = scene;
m_thread = new Thread(new ThreadStart(ProcessTextureSenders)); m_thread = new Thread(new ThreadStart(ProcessTextureSenders));
m_thread.Name = "ProcessTextureSenderThread"; m_thread.Name = "ProcessTextureSenderThread";
m_thread.IsBackground = true; m_thread.IsBackground = true;
@ -120,7 +121,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload
if (m_userTextureServices.TryGetValue(agentId, out textureService)) if (m_userTextureServices.TryGetValue(agentId, out textureService))
{ {
textureService.Close(); textureService.Close();
m_log.DebugFormat("[TEXTURE MODULE]: Removing UserTextureServices from {0}", m_scene.RegionInfo.RegionName);
m_userTextureServices.Remove(agentId); m_userTextureServices.Remove(agentId);
} }
} }
@ -144,9 +145,11 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload
{ {
if (m_userTextureServices.TryGetValue(client.AgentId, out textureService)) if (m_userTextureServices.TryGetValue(client.AgentId, out textureService))
{ {
//m_log.DebugFormat("[TEXTURE MODULE]: Found existing UserTextureServices in ", m_scene.RegionInfo.RegionName);
return true; return true;
} }
m_log.DebugFormat("[TEXTURE MODULE]: Creating new UserTextureServices in ", m_scene.RegionInfo.RegionName);
textureService = new UserTextureDownloadService(client, m_scene, m_queueSenders); textureService = new UserTextureDownloadService(client, m_scene, m_queueSenders);
m_userTextureServices.Add(client.AgentId, textureService); m_userTextureServices.Add(client.AgentId, textureService);