Catch exception triggered by incoming avatars using legacy profiles

cpu-performance
BlueWall 2013-06-08 11:00:05 -04:00
parent 34d40e46a5
commit 75e4af9d39
1 changed files with 10 additions and 1 deletions

View File

@ -1317,7 +1317,16 @@ namespace OpenSim.Region.OptionalModules.Avatar.UserProfiles
Stream rstream = webResponse.GetResponseStream(); Stream rstream = webResponse.GetResponseStream();
OSDMap response = new OSDMap(); OSDMap response = new OSDMap();
response = (OSDMap)OSDParser.DeserializeJson(rstream); try
{
response = (OSDMap)OSDParser.DeserializeJson(rstream);
}
catch (Exception e)
{
m_log.DebugFormat("[PROFILES]: JsonRpcRequest Error {0} - remote user with legacy profiles?", e.Message);
return false;
}
if(response.ContainsKey("error")) if(response.ContainsKey("error"))
{ {
data = response["error"]; data = response["error"];