cosmetics

This commit is contained in:
UbitUmarov
2020-08-30 16:05:02 +01:00
parent 09f074096f
commit 92e3f424cf
6 changed files with 57 additions and 67 deletions

View File

@@ -420,7 +420,11 @@ namespace OpenSim.Region.DataSnapshot
cli.RequestMethod = "GET";
try
{
reply = cli.Request(null);
using(reply = cli.Request(null))
{
byte[] response = new byte[1024];
reply.Read(response, 0, 1024);
}
}
catch (WebException)
{
@@ -431,17 +435,6 @@ namespace OpenSim.Region.DataSnapshot
m_log.Warn("[DATASNAPSHOT]: Ignoring unknown exception " + e.ToString());
}
byte[] response = new byte[1024];
// int n = 0;
try
{
// n = reply.Read(response, 0, 1024);
reply.Read(response, 0, 1024);
}
catch (Exception e)
{
m_log.WarnFormat("[DATASNAPSHOT]: Unable to decode reply from data service. Ignoring. {0}", e.StackTrace);
}
// This is not quite working, so...
// string responseStr = Util.UTF8.GetString(response);
m_log.Info("[DATASNAPSHOT]: data service " + url + " notified. Secret: " + m_Secret);