Added errorhandler+tip that grid server might not be running on grid registration failure on opensim startup.

afrisby
Tedd Hansen 2008-01-05 15:10:22 +00:00
parent db3edff5d5
commit 53793db182
1 changed files with 12 additions and 4 deletions

View File

@ -113,10 +113,18 @@ namespace OpenSim.Region.Communications.OGS1
SendParams.Add(GridParams);
// Send Request
XmlRpcRequest GridReq = new XmlRpcRequest("simulator_login", SendParams);
XmlRpcResponse GridResp = GridReq.Send(serversInfo.GridURL, 10000);
Hashtable GridRespData = (Hashtable) GridResp.Value;
XmlRpcRequest GridReq;
XmlRpcResponse GridResp;
try
{
GridReq = new XmlRpcRequest("simulator_login", SendParams);
GridResp = GridReq.Send(serversInfo.GridURL, 10000);
} catch (Exception ex)
{
MainLog.Instance.Error("Unable to connect to grid (Grid server not running?): " + ex.ToString());
return null;
}
Hashtable GridRespData = (Hashtable)GridResp.Value;
Hashtable griddatahash = GridRespData;
// Process Response