From 3d0d7cb74cf37c40d119570148d217a6478e3e0e Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Wed, 18 Jul 2007 00:02:09 +0000 Subject: * More attempts at fixing Ckrinke's phantom remoting error. Heh. --- .../Region/Communications/OGS1/OGS1InterSimComms.cs | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Communications/OGS1/OGS1InterSimComms.cs b/OpenSim/Region/Communications/OGS1/OGS1InterSimComms.cs index 520c593..e9affe5 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1InterSimComms.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1InterSimComms.cs @@ -58,12 +58,26 @@ namespace OpenSim.Region.Communications.OGS1 public bool InformRegionOfChildAgent(ulong regionHandle, AgentCircuitData agentData) { - return InterRegionSingleton.Instance.InformRegionOfChildAgent(regionHandle, agentData); + try + { + return InterRegionSingleton.Instance.InformRegionOfChildAgent(regionHandle, agentData); + } + catch (System.Runtime.Remoting.RemotingException e) + { + MainLog.Instance.Error("Remoting Error: Unable to connect to remote region.\n" + e.ToString()); + } } public bool ExpectAvatarCrossing(ulong regionHandle, LLUUID agentID, LLVector3 position) { - return InterRegionSingleton.Instance.ExpectAvatarCrossing(regionHandle, agentID, position); + try + { + return InterRegionSingleton.Instance.ExpectAvatarCrossing(regionHandle, agentID, position); + } + catch (System.Runtime.Remoting.RemotingException e) + { + MainLog.Instance.Error("Remoting Error: Unable to connect to remote region.\n" + e.ToString()); + } } } } -- cgit v1.1