From 6b02c99194393cbcba4725b7d6dceb833bab8ec5 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 27 Mar 2018 20:00:31 +0100 Subject: fix previus commit with the right source file :( --- .../CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs index da1ae6e9..2334e0b 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs @@ -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; } -- cgit v1.1