Added a check to GridServerBase.RegisterInterface<T>(T iface), so that it can't try to add duplicate interfaces and cause a exception.
parent
65d413e5ee
commit
869c64f955
|
@ -219,7 +219,10 @@ namespace OpenSim.Grid.GridServer
|
|||
{
|
||||
lock (m_gridInterfaces)
|
||||
{
|
||||
m_gridInterfaces.Add(typeof(T), iface);
|
||||
if (!m_gridInterfaces.ContainsKey(typeof(T)))
|
||||
{
|
||||
m_gridInterfaces.Add(typeof(T), iface);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue