mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
Avoid an exception in creating child agents some times.
This commit is contained in:
@@ -1867,6 +1867,8 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
|||||||
//foreach (ulong h in agent.ChildrenCapSeeds.Keys)
|
//foreach (ulong h in agent.ChildrenCapSeeds.Keys)
|
||||||
// m_log.DebugFormat("[XXX] --> {0}", h);
|
// m_log.DebugFormat("[XXX] --> {0}", h);
|
||||||
//m_log.DebugFormat("[XXX] Adding {0}", region.RegionHandle);
|
//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);
|
agent.ChildrenCapSeeds.Add(region.RegionHandle, agent.CapsPath);
|
||||||
|
|
||||||
if (sp.Scene.CapsModule != null)
|
if (sp.Scene.CapsModule != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user