From 748f72326d9a295958bc9ba63bbb1a5d39030ef7 Mon Sep 17 00:00:00 2001 From: Dr Scofield Date: Fri, 27 Jun 2008 23:03:39 +0000 Subject: last round of warning squashing. calling it a day now. --- OpenSim/Region/DataSnapshot/DataSnapshotManager.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'OpenSim/Region/DataSnapshot/DataSnapshotManager.cs') diff --git a/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs b/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs index ae0b5ff..55ef047 100644 --- a/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs +++ b/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs @@ -79,7 +79,7 @@ namespace OpenSim.Region.DataSnapshot //Program objects private SnapshotStore m_snapStore = null; - private DataRequestHandler m_requests = null; + // private DataRequestHandler m_requests = null; #endregion @@ -144,7 +144,7 @@ namespace OpenSim.Region.DataSnapshot m_passedCheck.Start(); //Hand it the first scene, assuming that all scenes have the same BaseHTTPServer - m_requests = new DataRequestHandler(scene, this); + // m_requests = new DataRequestHandler(scene, this); m_hostname = scene.RegionInfo.ExternalHostName; m_snapStore = new SnapshotStore(m_snapsDir, m_gridinfo, m_listener_port, m_hostname); @@ -325,17 +325,18 @@ namespace OpenSim.Region.DataSnapshot m_log.Warn("[DATASNAPSHOT] Ignoring unknown exception " + e.ToString()); } byte[] response = new byte[1024]; - int n = 0; + // int n = 0; try { - n = reply.Read(response, 0, 1024); + // n = reply.Read(response, 0, 1024); + reply.Read(response, 0, 1024); } catch (Exception e) { - m_log.Warn("[DATASNAPSHOT] Unable to decode reply from data service. Ignoring. " + e.StackTrace); + m_log.WarnFormat("[DATASNAPSHOT] Unable to decode reply from data service. Ignoring. {0}", e.StackTrace); } // This is not quite working, so... - string responseStr = Encoding.UTF8.GetString(response); + // string responseStr = Encoding.UTF8.GetString(response); m_log.Info("[DATASNAPSHOT] data service notified: " + url); } -- cgit v1.1