mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Better error handling for expect_hg_user on the HG.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user