fix previus commit with the right source file :(
parent
cb134e5487
commit
6b02c99194
|
@ -1178,6 +1178,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
|||
agent.ControlFlags |= (uint)AgentManager.ControlFlags.AGENT_CONTROL_FLY;
|
||||
|
||||
agent.SenderWantsToWaitForRoot = true;
|
||||
|
||||
//SetCallbackURL(agent, sp.Scene.RegionInfo);
|
||||
|
||||
// Reset the do not close flag. This must be done before the destination opens child connections (here
|
||||
|
@ -1548,6 +1549,8 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
|||
CrossAsyncDelegate icon = (CrossAsyncDelegate)iar.AsyncState;
|
||||
ScenePresence agent = icon.EndInvoke(iar);
|
||||
|
||||
if(agent == null || agent.IsDeleted)
|
||||
return;
|
||||
|
||||
if(!agent.IsChildAgent)
|
||||
{
|
||||
|
@ -1575,7 +1578,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
|||
ctx, out newpos, out failureReason);
|
||||
if (neighbourRegion == null)
|
||||
{
|
||||
if (failureReason != String.Empty)
|
||||
if (!agent.IsDeleted && failureReason != String.Empty && agent.ControllingClient != null)
|
||||
agent.ControllingClient.SendAlertMessage(failureReason);
|
||||
return agent;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue