* Fixed duplicate CAP bug when a user logs out then relogs back in in grid mode.

afrisby
Adam Frisby 2007-07-14 23:06:05 +00:00
parent e9bcc7a3fd
commit c46a508945
1 changed files with 10 additions and 1 deletions

View File

@ -711,7 +711,16 @@ namespace OpenSim.Region.Environment.Scenes
//Console.WriteLine("new user, so creating caps handler for it"); //Console.WriteLine("new user, so creating caps handler for it");
Caps cap = new Caps(this.assetCache, httpListener, this.m_regInfo.ExternalHostName, this.m_regInfo.ExternalEndPoint.Port, agent.CapsPath, agent.AgentID); Caps cap = new Caps(this.assetCache, httpListener, this.m_regInfo.ExternalHostName, this.m_regInfo.ExternalEndPoint.Port, agent.CapsPath, agent.AgentID);
cap.RegisterHandlers(); cap.RegisterHandlers();
this.capsHandlers.Add(agent.AgentID, cap); if (capsHandlers.ContainsKey(agent.AgentID))
{
OpenSim.Framework.Console.MainLog.Instance.Warn("Adding duplicate CAPS entry for user " + agent.AgentID.ToStringHyphenated());
this.capsHandlers[agent.AgentID] = cap;
}
else
{
this.capsHandlers.Add(agent.AgentID, cap);
}
} }
this.authenticateHandler.AddNewCircuit(agent.circuitcode, agent); this.authenticateHandler.AddNewCircuit(agent.circuitcode, agent);
} }