Added a check to LLClientView.RegisterInterface<T>(T iface), so that it can't try to add duplicate interfaces and cause a exception.

GenericGridServerConcept
MW 2009-02-21 14:30:17 +00:00
parent 869c64f955
commit 89006da793
1 changed files with 4 additions and 1 deletions

View File

@ -8466,7 +8466,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
{
lock (m_clientInterfaces)
{
m_clientInterfaces.Add(typeof(T), iface);
if (!m_clientInterfaces.ContainsKey(typeof(T)))
{
m_clientInterfaces.Add(typeof(T), iface);
}
}
}