diff --git a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs index ce46043175..a85982679b 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs @@ -444,10 +444,17 @@ namespace OpenSim.Region.Communications.OGS1 /// public bool IncomingArrival(ulong regionHandle, LLUUID agentID, LLVector3 position) { - if (this.listeners.ContainsKey(regionHandle)) + try { - this.listeners[regionHandle].TriggerExpectAvatarCrossing(regionHandle, agentID, position); - return true; + if (this.listeners.ContainsKey(regionHandle)) + { + this.listeners[regionHandle].TriggerExpectAvatarCrossing(regionHandle, agentID, position); + return true; + } + } + catch (System.Runtime.Remoting.RemotingException e) + { + MainLog.Instance.Error("Remoting Error: Unable to connect to remote region.\n" + e.ToString()); } return false; } diff --git a/OpenSim/Region/Environment/Scenes/scripting/ScriptInterpretedAPI.cs b/OpenSim/Region/Environment/Scenes/scripting/ScriptInterpretedAPI.cs index 982cd6522f..6ef968b2c3 100644 --- a/OpenSim/Region/Environment/Scenes/scripting/ScriptInterpretedAPI.cs +++ b/OpenSim/Region/Environment/Scenes/scripting/ScriptInterpretedAPI.cs @@ -136,7 +136,7 @@ namespace OpenSim.Region.Scripting public Key osAvatarOnSitTarget() { //TODO: Follow this as Children is chanced to be of type entity to support ScenePresences - foreach (KeyValuePair Child in Task.Children) + foreach (KeyValuePair Child in Task.Children) { if (Child.Value is ScenePresence) {