From 89006da79305cd2c6296d2ac8a589715c81da460 Mon Sep 17 00:00:00 2001 From: MW Date: Sat, 21 Feb 2009 14:30:17 +0000 Subject: Added a check to LLClientView.RegisterInterface(T iface), so that it can't try to add duplicate interfaces and cause a exception. --- OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index c715949..c4b025a 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -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); + } } } -- cgit v1.1