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);
|
||||
|
||||
// Send Request
|
||||
XmlRpcRequest GridReq = new XmlRpcRequest("simulator_login", SendParams);
|
||||
XmlRpcResponse GridResp = GridReq.Send(serversInfo.GridURL, 10000);
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue