Better error handling for expect_hg_user on the HG.
parent
318de200bd
commit
857535550c
|
@ -620,7 +620,16 @@ namespace OpenSim.Region.Communications.Hypergrid
|
|||
string uri = "http://" + regInfo.ExternalHostName + ":" + regInfo.HttpPort + "/";
|
||||
//Console.WriteLine("XXX uri: " + uri);
|
||||
XmlRpcRequest request = new XmlRpcRequest("expect_hg_user", SendParams);
|
||||
XmlRpcResponse reply = request.Send(uri, 6000);
|
||||
XmlRpcResponse reply;
|
||||
try
|
||||
{
|
||||
reply = request.Send(uri, 6000);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
m_log.Warn("[HGrid]: Failed to notify region about user. Reason: " + e.Message);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!reply.IsFault)
|
||||
{
|
||||
|
|
|
@ -237,7 +237,8 @@ namespace OpenSim.Region.Communications.Hypergrid
|
|||
Console.WriteLine("XXX Going local-grid region XXX");
|
||||
RegionInfo regInfo = RequestNeighbourInfo(regionHandle);
|
||||
if (regInfo != null)
|
||||
InformRegionOfUser(regInfo, agentData);
|
||||
if (!InformRegionOfUser(regInfo, agentData))
|
||||
return false;
|
||||
return m_remoteBackend.InformRegionOfChildAgent(regionHandle, agentData);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue