Added errorhandler+tip that grid server might not be running on grid registration failure on opensim startup.
parent
db3edff5d5
commit
53793db182
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue