aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/DataSnapshot/DataSnapshotManager.cs')
-rw-r--r--OpenSim/Region/DataSnapshot/DataSnapshotManager.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs b/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs
index dd48dd5..78c050a 100644
--- a/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs
+++ b/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs
@@ -307,7 +307,7 @@ namespace OpenSim.Region.DataSnapshot
307 XmlNode regiondata = requestedSnap.CreateNode(XmlNodeType.Element, "regiondata", ""); 307 XmlNode regiondata = requestedSnap.CreateNode(XmlNodeType.Element, "regiondata", "");
308 try 308 try
309 { 309 {
310 if (regionName == null || regionName == "") 310 if (string.IsNullOrEmpty(regionName))
311 { 311 {
312 XmlNode timerblock = requestedSnap.CreateNode(XmlNodeType.Element, "expire", ""); 312 XmlNode timerblock = requestedSnap.CreateNode(XmlNodeType.Element, "expire", "");
313 timerblock.InnerText = m_period.ToString(); 313 timerblock.InnerText = m_period.ToString();
@@ -391,6 +391,7 @@ namespace OpenSim.Region.DataSnapshot
391 { 391 {
392 m_log.Warn("[DATASNAPSHOT]: Ignoring unknown exception " + e.ToString()); 392 m_log.Warn("[DATASNAPSHOT]: Ignoring unknown exception " + e.ToString());
393 } 393 }
394
394 byte[] response = new byte[1024]; 395 byte[] response = new byte[1024];
395 // int n = 0; 396 // int n = 0;
396 try 397 try
@@ -405,6 +406,9 @@ namespace OpenSim.Region.DataSnapshot
405 // This is not quite working, so... 406 // This is not quite working, so...
406 // string responseStr = Util.UTF8.GetString(response); 407 // string responseStr = Util.UTF8.GetString(response);
407 m_log.Info("[DATASNAPSHOT]: data service " + url + " notified. Secret: " + m_Secret); 408 m_log.Info("[DATASNAPSHOT]: data service " + url + " notified. Secret: " + m_Secret);
409
410 if(reply != null)
411 reply.Close();
408 } 412 }
409 413
410 } 414 }