From 8aa796595ccd0518644e61eccf5704761a609fd3 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Tue, 29 Jan 2008 17:16:38 +0000 Subject: * Fixed a crash if the server is unable to connect to the UserServer when a user logs off --- OpenSim/Region/Communications/OGS1/OGS1UserServices.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs index 2cf3665..70b7e89 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs @@ -152,7 +152,15 @@ namespace OpenSim.Region.Communications.OGS1 IList parameters = new ArrayList(); parameters.Add(param); XmlRpcRequest req = new XmlRpcRequest("logout_of_simulator", parameters); - XmlRpcResponse resp = req.Send(m_parent.NetworkServersInfo.UserURL, 3000); + try + { + XmlRpcResponse resp = req.Send(m_parent.NetworkServersInfo.UserURL, 3000); + } + catch (System.Net.WebException) + { + MainLog.Instance.Warn("LOGOFF", "Unable to notify grid server of user logoff"); + } + } public UserProfileData GetUserProfile(string firstName, string lastName) -- cgit v1.1