Prevent the region crash in gridmode on bringing up the map
parent
793813a6a6
commit
baa4e82107
|
@ -266,11 +266,19 @@ namespace OpenSim.Region.Communications.OGS1
|
||||||
param["ymax"] = maxY;
|
param["ymax"] = maxY;
|
||||||
IList parameters = new ArrayList();
|
IList parameters = new ArrayList();
|
||||||
parameters.Add(param);
|
parameters.Add(param);
|
||||||
|
try
|
||||||
|
{
|
||||||
XmlRpcRequest req = new XmlRpcRequest("map_block", parameters);
|
XmlRpcRequest req = new XmlRpcRequest("map_block", parameters);
|
||||||
XmlRpcResponse resp = req.Send(serversInfo.GridURL, 10000);
|
XmlRpcResponse resp = req.Send(serversInfo.GridURL, 10000);
|
||||||
Hashtable respData = (Hashtable) resp.Value;
|
Hashtable respData = (Hashtable) resp.Value;
|
||||||
return respData;
|
return respData;
|
||||||
}
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
MainLog.Instance.Error("MapBlockQuery XMLRPC failure: " + e.ToString());
|
||||||
|
return new Hashtable();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A ping / version check
|
/// A ping / version check
|
||||||
|
|
Loading…
Reference in New Issue