From e9447cc8361864ca2830689ae353cfd742290042 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Thu, 3 Jul 2014 20:09:16 -0700 Subject: [PATCH] Avoid an exception in creating child agents some times. --- .../Framework/EntityTransfer/EntityTransferModule.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs index b157e6ba32..d20dbf2581 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs @@ -1866,6 +1866,8 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer //foreach (ulong h in agent.ChildrenCapSeeds.Keys) // m_log.DebugFormat("[XXX] --> {0}", h); //m_log.DebugFormat("[XXX] Adding {0}", region.RegionHandle); + if (agent.ChildrenCapSeeds.ContainsKey(region.RegionHandle)) + agent.ChildrenCapSeeds.Remove(region.RegionHandle); agent.ChildrenCapSeeds.Add(region.RegionHandle, agent.CapsPath); if (sp.Scene.CapsModule != null)