* Fixed a bug where the simulator could crash if the userserver was particularly busy.

afrisby
Adam Frisby 2007-07-30 22:13:21 +00:00
parent e172e37c58
commit 7db7ad0722
1 changed files with 8 additions and 8 deletions

View File

@ -47,8 +47,8 @@ namespace OpenSim.Region.Communications.OGS1
} }
public UserProfileData GetUserProfile(string name) public UserProfileData GetUserProfile(string name)
{ {
//try try
//{ {
Hashtable param = new Hashtable(); Hashtable param = new Hashtable();
param["avatar_name"] = name; param["avatar_name"] = name;
IList parameters = new ArrayList(); IList parameters = new ArrayList();
@ -58,12 +58,12 @@ namespace OpenSim.Region.Communications.OGS1
Hashtable respData = (Hashtable)resp.Value; Hashtable respData = (Hashtable)resp.Value;
return ConvertXMLRPCDataToUserProfile(respData); return ConvertXMLRPCDataToUserProfile(respData);
//} }
//catch (Exception e) catch (System.Net.WebException e)
//{ {
// Console.WriteLine("Error when trying to fetch profile data by name from remote user server: " + e.Message); OpenSim.Framework.Console.MainLog.Instance.Warn("Error when trying to fetch profile data by name from remote user server: " + e.Message);
//} }
//return null; return null;
} }
public UserProfileData GetUserProfile(LLUUID avatarID) public UserProfileData GetUserProfile(LLUUID avatarID)
{ {