* 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

@ -419,12 +419,19 @@ namespace OpenSim.Region.Communications.OGS1
/// <param name="agentData"></param>
/// <returns></returns>
public bool IncomingChildAgent(ulong regionHandle, AgentCircuitData agentData)
{
try
{
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;
}