From 6ff01c774e2d4935964fbe6227785c89288c7eff Mon Sep 17 00:00:00 2001 From: diva Date: Tue, 26 May 2009 01:05:40 +0000 Subject: Addresses mantis #3718. --- OpenSim/Framework/Communications/Clients/AuthClient.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/OpenSim/Framework/Communications/Clients/AuthClient.cs b/OpenSim/Framework/Communications/Clients/AuthClient.cs index 49ec7ba..5714395 100644 --- a/OpenSim/Framework/Communications/Clients/AuthClient.cs +++ b/OpenSim/Framework/Communications/Clients/AuthClient.cs @@ -124,7 +124,16 @@ namespace OpenSim.Framework.Communications.Clients ArrayList SendParams = new ArrayList(); SendParams.Add(requestData); XmlRpcRequest UserReq = new XmlRpcRequest("check_auth_session", SendParams); - XmlRpcResponse UserResp = UserReq.Send(authurl, 3000); + XmlRpcResponse UserResp = null; + try + { + UserResp = UserReq.Send(authurl, 3000); + } + catch (Exception e) + { + System.Console.WriteLine("[Session Auth]: VerifySession XmlRpc: " + e.Message); + return false; + } Hashtable responseData = (Hashtable)UserResp.Value; if (responseData.ContainsKey("auth_session") && responseData["auth_session"].ToString() == "TRUE") -- cgit v1.1