mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Prevent the region crash in gridmode on bringing up the map
This commit is contained in:
@@ -266,10 +266,18 @@ namespace OpenSim.Region.Communications.OGS1
|
||||
param["ymax"] = maxY;
|
||||
IList parameters = new ArrayList();
|
||||
parameters.Add(param);
|
||||
XmlRpcRequest req = new XmlRpcRequest("map_block", parameters);
|
||||
XmlRpcResponse resp = req.Send(serversInfo.GridURL, 10000);
|
||||
Hashtable respData = (Hashtable) resp.Value;
|
||||
return respData;
|
||||
try
|
||||
{
|
||||
XmlRpcRequest req = new XmlRpcRequest("map_block", parameters);
|
||||
XmlRpcResponse resp = req.Send(serversInfo.GridURL, 10000);
|
||||
Hashtable respData = (Hashtable) resp.Value;
|
||||
return respData;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
MainLog.Instance.Error("MapBlockQuery XMLRPC failure: " + e.ToString());
|
||||
return new Hashtable();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -534,4 +542,4 @@ namespace OpenSim.Region.Communications.OGS1
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user