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); SendParams.Add(GridParams);
// Send Request // Send Request
XmlRpcRequest GridReq = new XmlRpcRequest("simulator_login", SendParams); XmlRpcRequest GridReq;
XmlRpcResponse GridResp = GridReq.Send(serversInfo.GridURL, 10000); 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 GridRespData = (Hashtable)GridResp.Value;
Hashtable griddatahash = GridRespData; Hashtable griddatahash = GridRespData;
// Process Response // Process Response