* Added exception handler to deal with RemotingExceptions for Child Agents.

afrisby
Adam Frisby 2007-07-17 20:40:01 +00:00
parent 3a554de6e2
commit 7b7267984a
1 changed files with 10 additions and 3 deletions

View File

@ -420,10 +420,17 @@ namespace OpenSim.Region.Communications.OGS1
/// <returns></returns>
public bool IncomingChildAgent(ulong regionHandle, AgentCircuitData agentData)
{
if (this.listeners.ContainsKey(regionHandle))
try
{
this.listeners[regionHandle].TriggerExpectUser(regionHandle, agentData);
return true;
if (this.listeners.ContainsKey(regionHandle))
{
this.listeners[regionHandle].TriggerExpectUser(regionHandle, agentData);
return true;
}
}
catch (System.Runtime.Remoting.RemotingException e)
{
MainLog.Instance.Error("Remoting Error: Unable to connect to remote region.\n" + e.ToString());
}
return false;
}