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

GenericGridServerConcept
MW 2009-02-21 14:24:25 +00:00
parent 65d413e5ee
commit 869c64f955
1 changed files with 4 additions and 1 deletions

View File

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