Added a check to LLClientView.RegisterInterface<T>(T iface), so that it can't try to add duplicate interfaces and cause a exception.
parent
869c64f955
commit
89006da793
|
@ -8465,10 +8465,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
protected void RegisterInterface<T>(T iface)
|
||||
{
|
||||
lock (m_clientInterfaces)
|
||||
{
|
||||
if (!m_clientInterfaces.ContainsKey(typeof(T)))
|
||||
{
|
||||
m_clientInterfaces.Add(typeof(T), iface);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected virtual void RegisterInterfaces()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue