... and a few more..
parent
060984502e
commit
ce8ea55f4e
|
@ -1239,9 +1239,10 @@ namespace OpenSim.Region.OptionalModules.Avatar.UserProfiles
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Stream rstream = webResponse.GetResponseStream();
|
|
||||||
|
|
||||||
OSDMap mret = new OSDMap();
|
OSDMap mret = new OSDMap();
|
||||||
|
|
||||||
|
using (Stream rstream = webResponse.GetResponseStream())
|
||||||
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
mret = (OSDMap)OSDParser.DeserializeJson(rstream);
|
mret = (OSDMap)OSDParser.DeserializeJson(rstream);
|
||||||
|
@ -1249,9 +1250,14 @@ namespace OpenSim.Region.OptionalModules.Avatar.UserProfiles
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
m_log.DebugFormat("[PROFILES]: JsonRpcRequest Error {0} - remote user with legacy profiles?", e.Message);
|
m_log.DebugFormat("[PROFILES]: JsonRpcRequest Error {0} - remote user with legacy profiles?", e.Message);
|
||||||
|
if (webResponse != null)
|
||||||
|
webResponse.Close();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (webResponse != null)
|
||||||
|
webResponse.Close();
|
||||||
|
|
||||||
if (mret.ContainsKey("error"))
|
if (mret.ContainsKey("error"))
|
||||||
return false;
|
return false;
|
||||||
|
@ -1315,9 +1321,10 @@ namespace OpenSim.Region.OptionalModules.Avatar.UserProfiles
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Stream rstream = webResponse.GetResponseStream();
|
|
||||||
|
|
||||||
OSDMap response = new OSDMap();
|
OSDMap response = new OSDMap();
|
||||||
|
|
||||||
|
using (Stream rstream = webResponse.GetResponseStream())
|
||||||
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
response = (OSDMap)OSDParser.DeserializeJson(rstream);
|
response = (OSDMap)OSDParser.DeserializeJson(rstream);
|
||||||
|
@ -1325,8 +1332,14 @@ namespace OpenSim.Region.OptionalModules.Avatar.UserProfiles
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
m_log.DebugFormat("[PROFILES]: JsonRpcRequest Error {0} - remote user with legacy profiles?", e.Message);
|
m_log.DebugFormat("[PROFILES]: JsonRpcRequest Error {0} - remote user with legacy profiles?", e.Message);
|
||||||
|
if (webResponse != null)
|
||||||
|
webResponse.Close();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (webResponse != null)
|
||||||
|
webResponse.Close();
|
||||||
|
|
||||||
if(response.ContainsKey("error"))
|
if(response.ContainsKey("error"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue