* Fixed duplicate CAP bug when a user logs out then relogs back in in grid mode.
parent
e9bcc7a3fd
commit
c46a508945
|
@ -711,8 +711,17 @@ 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();
|
||||||
|
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.capsHandlers.Add(agent.AgentID, cap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
this.authenticateHandler.AddNewCircuit(agent.circuitcode, agent);
|
this.authenticateHandler.AddNewCircuit(agent.circuitcode, agent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue