avoi null refs on tests simple clients
parent
c68e7b6621
commit
b920f784ea
|
@ -844,10 +844,13 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
||||||
|
|
||||||
string capsPath = finalDestination.ServerURI + CapsUtil.GetCapsSeedPath(agentCircuit.CapsPath);
|
string capsPath = finalDestination.ServerURI + CapsUtil.GetCapsSeedPath(agentCircuit.CapsPath);
|
||||||
List<ulong> childRegionsToClose = sp.GetChildAgentsToClose(destinationHandle, finalDestination.RegionSizeX, finalDestination.RegionSizeY);
|
List<ulong> childRegionsToClose = sp.GetChildAgentsToClose(destinationHandle, finalDestination.RegionSizeX, finalDestination.RegionSizeY);
|
||||||
|
if(agentCircuit.ChildrenCapSeeds != null)
|
||||||
|
{
|
||||||
foreach(ulong handler in childRegionsToClose)
|
foreach(ulong handler in childRegionsToClose)
|
||||||
{
|
{
|
||||||
agentCircuit.ChildrenCapSeeds.Remove(handler);
|
agentCircuit.ChildrenCapSeeds.Remove(handler);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Let's create an agent there if one doesn't exist yet.
|
// Let's create an agent there if one doesn't exist yet.
|
||||||
// NOTE: logout will always be false for a non-HG teleport.
|
// NOTE: logout will always be false for a non-HG teleport.
|
||||||
|
@ -1084,10 +1087,14 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
||||||
ulong destinationHandle = finalDestination.RegionHandle;
|
ulong destinationHandle = finalDestination.RegionHandle;
|
||||||
|
|
||||||
List<ulong> childRegionsToClose = sp.GetChildAgentsToClose(destinationHandle, finalDestination.RegionSizeX, finalDestination.RegionSizeY);
|
List<ulong> childRegionsToClose = sp.GetChildAgentsToClose(destinationHandle, finalDestination.RegionSizeX, finalDestination.RegionSizeY);
|
||||||
|
|
||||||
|
if(agentCircuit.ChildrenCapSeeds != null)
|
||||||
|
{
|
||||||
foreach(ulong handler in childRegionsToClose)
|
foreach(ulong handler in childRegionsToClose)
|
||||||
{
|
{
|
||||||
agentCircuit.ChildrenCapSeeds.Remove(handler);
|
agentCircuit.ChildrenCapSeeds.Remove(handler);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
string capsPath = finalDestination.ServerURI + CapsUtil.GetCapsSeedPath(agentCircuit.CapsPath);;
|
string capsPath = finalDestination.ServerURI + CapsUtil.GetCapsSeedPath(agentCircuit.CapsPath);;
|
||||||
|
|
||||||
|
@ -1763,8 +1770,11 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
||||||
cAgent.ChildrenCapSeeds = agent.KnownRegions;
|
cAgent.ChildrenCapSeeds = agent.KnownRegions;
|
||||||
|
|
||||||
childRegionsToClose = agent.GetChildAgentsToClose(neighbourRegion.RegionHandle, neighbourRegion.RegionSizeX, neighbourRegion.RegionSizeY);
|
childRegionsToClose = agent.GetChildAgentsToClose(neighbourRegion.RegionHandle, neighbourRegion.RegionSizeX, neighbourRegion.RegionSizeY);
|
||||||
|
if(cAgent.ChildrenCapSeeds != null)
|
||||||
|
{
|
||||||
foreach(ulong regh in childRegionsToClose)
|
foreach(ulong regh in childRegionsToClose)
|
||||||
cAgent.ChildrenCapSeeds.Remove(regh);
|
cAgent.ChildrenCapSeeds.Remove(regh);
|
||||||
|
}
|
||||||
|
|
||||||
if (isFlying)
|
if (isFlying)
|
||||||
cAgent.ControlFlags |= (uint)AgentManager.ControlFlags.AGENT_CONTROL_FLY;
|
cAgent.ControlFlags |= (uint)AgentManager.ControlFlags.AGENT_CONTROL_FLY;
|
||||||
|
|
Loading…
Reference in New Issue