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

This commit is contained in:
MW
2009-02-21 14:30:17 +00:00
parent 869c64f955
commit 89006da793

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);
}
}
}