Prevent the region crash in gridmode on bringing up the map

afrisby
Dalien Talbot 2007-11-18 05:28:28 +00:00
parent 793813a6a6
commit baa4e82107
1 changed files with 13 additions and 5 deletions

View File

@ -266,10 +266,18 @@ 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);
XmlRpcRequest req = new XmlRpcRequest("map_block", parameters); try
XmlRpcResponse resp = req.Send(serversInfo.GridURL, 10000); {
Hashtable respData = (Hashtable) resp.Value; XmlRpcRequest req = new XmlRpcRequest("map_block", parameters);
return respData; 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> /// <summary>
@ -534,4 +542,4 @@ namespace OpenSim.Region.Communications.OGS1
#endregion #endregion
} }
} }