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

@ -8465,10 +8465,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
protected void RegisterInterface<T>(T iface) protected void RegisterInterface<T>(T iface)
{ {
lock (m_clientInterfaces) lock (m_clientInterfaces)
{
if (!m_clientInterfaces.ContainsKey(typeof(T)))
{ {
m_clientInterfaces.Add(typeof(T), iface); m_clientInterfaces.Add(typeof(T), iface);
} }
} }
}
protected virtual void RegisterInterfaces() protected virtual void RegisterInterfaces()
{ {