mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 22:05:36 +08:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user